From 0ac38c8b5c970d324c461fdc819edfd90966a093 Mon Sep 17 00:00:00 2001 From: Peder Refsnes Date: Sat, 25 Oct 2014 17:39:03 +0200 Subject: [PATCH] fixes deprecation warning for _BSD_SOURCE 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. --- chicken.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chicken.h b/chicken.h index fc40303..b7c114d 100644 --- a/chicken.h +++ b/chicken.h @@ -52,6 +52,10 @@ # define _BSD_SOURCE #endif +#ifndef _DEFAULT_SOURCE +# define _DEFAULT_SOURCE +#endif + #ifndef _SVID_SOURCE # define _SVID_SOURCE #endif -- 2.1.2