From: Florian Forster Date: Sun, 14 Sep 2008 08:15:37 +0000 (+0200) Subject: src/rrd_daemon.c: Re-introduce the strict C99/POSIX defines. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=233d08a4e30ba49be5c37850361f3afebc65e4b5;p=rrdtool.git src/rrd_daemon.c: Re-introduce the strict C99/POSIX defines. They're commented out using `#if 0' because Kevin reported problems with it. This way they can easily be activated for development and debugging. --- diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 75e7af0..79b908d 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -20,6 +20,30 @@ * kevin brintnall **/ +#if 0 +/* + * First tell the compiler to stick to the C99 and POSIX standards as close as + * possible. + */ +#ifndef __STRICT_ANSI__ /* {{{ */ +# define __STRICT_ANSI__ +#endif + +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif + +#ifdef _POSIX_C_SOURCE +# undef _POSIX_C_SOURCE +#endif +#define _POSIX_C_SOURCE 200112L + +/* Single UNIX needed for strdup. */ +#ifdef _XOPEN_SOURCE +# undef _XOPEN_SOURCE +#endif +#define _XOPEN_SOURCE 500 + #ifndef _REENTRANT # define _REENTRANT #endif @@ -28,7 +52,11 @@ # define _THREAD_SAFE #endif +#ifdef _GNU_SOURCE +# undef _GNU_SOURCE +#endif /* }}} */ +#endif /* 0 */ /* * Now for some includes..