Fix compiler warning

/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~

Change-Id: I442e60413b3bee6d365cd5df672a558d68998670
This commit is contained in:
Harald Welte 2017-10-27 22:05:31 +02:00
parent b7c145daa4
commit 8d9147a764
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
* Redistribution and modifications are permitted subject to BSD license.
*/
#define _ISOC99_SOURCE /* For ilogb() and quiet NAN */
#define _BSD_SOURCE /* To reintroduce finite(3) */
#define _DEFAULT_SOURCE /* To reintroduce finite(3) */
#if defined(__alpha)
#include <sys/resource.h> /* For INFINITY */
#endif