changeset 3475:ed186c6bbfd8 HEAD

Added comment about config.h hack
author Timo Sirainen <tss@iki.fi>
date Tue, 12 Jul 2005 16:04:36 +0300
parents 9096b7957413
children bb88b67d72b2
files src/lib/compat.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/compat.c	Tue Jul 12 15:58:47 2005 +0300
+++ b/src/lib/compat.c	Tue Jul 12 16:04:36 2005 +0300
@@ -3,6 +3,8 @@
 #include "config.h"
 #undef HAVE_CONFIG_H
 
+/* Linux needs the _XOPEN_SOURCE define, but others don't. It needs to be
+   defined before unistd.h, so we need the above config.h include hack.. */
 #ifdef PREAD_WRAPPERS
 #  define _XOPEN_SOURCE 500 /* Linux */
 #endif