chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Fix _BSD_SOURCE warning when compiling with gl


From: Peder Refsnes
Subject: [Chicken-hackers] [PATCH] Fix _BSD_SOURCE warning when compiling with glibc >= 2.20
Date: Sat, 25 Oct 2014 17:46:12 +0200

When compiling any egg with chicken you get a deprecation 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"

On linux, `man feature_test_macros` state that the _BSD_SOURCE macro is
deprecated in glibc 2.20.

As suggested in the warning defining _DEFAULT_SOURCE makes the warning
go away.

Attachment: 0001-fixes-deprecation-warning-for-_BSD_SOURCE.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]