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.
This commit is contained in:
Christian Taedcke 2015-10-24 14:21:42 +02:00
parent be06aa39ab
commit 3ffe6684e2
1 changed files with 1 additions and 0 deletions

View File

@ -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 <ctype.h>