summaryrefslogtreecommitdiff
blob: d20df635512cce550e2c967d4f19d0b611c23f9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Silence warnings due to _BSD_SOURCE being deprecated by glib:
* /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"

--- a/configure.ac
+++ b/configure.ac
@@ -108,7 +108,7 @@
 AC_PROG_CC
 
 # -D_GNU_SOURCE is only necessary for old (< 2.10) glibc implementations of open_memstream()
-CFLAGS="$CFLAGS -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_GNU_SOURCE"
+CFLAGS="$CFLAGS -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_GNU_SOURCE"
 if test x$GCC = xyes ; then
   CFLAGS="$CFLAGS -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -Wmissing-declarations -pipe -std=c99"
 fi