From 3ffe6684e2560710c033141c7a92c846ce81050a Mon Sep 17 00:00:00 2001 From: Christian Taedcke Date: Sat, 24 Oct 2015 14:21:42 +0200 Subject: [PATCH] Add definition of _DEFAULT_SOURCE. Since glibc version 2.20, _SVID_SOURCE is deprecated, see 'man 7 feature_test_macros'. To be able to compile this code without compiler warnings in new and old glibc versions, both _DEFAULT_SOURCE and _SVID_SOURCE must be defined. --- vpi/sys_scanf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vpi/sys_scanf.c b/vpi/sys_scanf.c index f05b6245f..2e86cae2d 100644 --- a/vpi/sys_scanf.c +++ b/vpi/sys_scanf.c @@ -20,6 +20,7 @@ /* round() is ISO C99 from math.h. This define should enable it. */ # define _ISOC99_SOURCE 1 # define _SVID_SOURCE 1 +# define _DEFAULT_SOURCE 1 # include "sys_priv.h" # include