From 3b3c7db8df9fef1712922883133bc552d90ebd70 Mon Sep 17 00:00:00 2001 From: sts Date: Wed, 16 Apr 2008 10:57:12 +0200 Subject: [PATCH] Avoid redefined warnings caused by clashing defines. --- src/ChangeLog | 5 +++++ src/sysdep.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6ca006d7..d62ebcbe 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-04-16 Steven Schubiger + + * sysdep.h: Comment the defines __EXTENSIONS__ and _GNU_SOURCE + out, because they're now defined independently by config.h. + 2008-04-14 Steven Schubiger * http.c: Use Gnulib's quote function for printing filenames and diff --git a/src/sysdep.h b/src/sysdep.h index ec50e045..84301b78 100644 --- a/src/sysdep.h +++ b/src/sysdep.h @@ -68,7 +68,7 @@ as that of the covered work. */ /* For Solaris: request everything else that is available and doesn't conflict with the above. */ -#define __EXTENSIONS__ +/* #define __EXTENSIONS__ */ /* XXX clashes with config.h */ /* For Linux: request features of 4.3BSD and SVID (System V Interface Definition). */ @@ -78,7 +78,7 @@ as that of the covered work. */ /* Under glibc-based systems we want all GNU extensions as well. This declares some unnecessary cruft, but also useful functions such as timegm, FNM_CASEFOLD extension to fnmatch, memrchr, etc. */ -#define _GNU_SOURCE +/* #define _GNU_SOURCE */ /* XXX clashes with config.h */ #endif /* NAMESPACE_TWEAKS */ -- 2.39.2