[quake3-commits] r1870 - in trunk/code: client qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Feb 7 00:20:32 EST 2011


Author: thilo
Date: 2011-02-07 00:20:31 -0500 (Mon, 07 Feb 2011)
New Revision: 1870

Modified:
   trunk/code/client/libmumblelink.c
   trunk/code/qcommon/q_shared.h
Log:
Ok, getifaddrs() is not POSIX compliant. Fix #3984 as suggested by Vincent Cojot


Modified: trunk/code/client/libmumblelink.c
===================================================================
--- trunk/code/client/libmumblelink.c	2011-02-07 04:34:39 UTC (rev 1869)
+++ trunk/code/client/libmumblelink.c	2011-02-07 05:20:31 UTC (rev 1870)
@@ -25,6 +25,9 @@
 #define uint32_t UINT32
 #else
 #include <unistd.h>
+#ifdef __sun
+#define _POSIX_C_SOURCE 199309L
+#endif
 #include <sys/mman.h>
 #include <sys/types.h>
 #include <sys/stat.h>

Modified: trunk/code/qcommon/q_shared.h
===================================================================
--- trunk/code/qcommon/q_shared.h	2011-02-07 04:34:39 UTC (rev 1869)
+++ trunk/code/qcommon/q_shared.h	2011-02-07 05:20:31 UTC (rev 1870)
@@ -23,14 +23,6 @@
 #ifndef __Q_SHARED_H
 #define __Q_SHARED_H
 
-#ifndef _BSD_SOURCE
-  #define _BSD_SOURCE
-#endif
-
-#ifndef _POSIX_C_SOURCE
-  #define _POSIX_C_SOURCE 200112L
-#endif
-
 // q_shared.h -- included first by ALL program modules.
 // A user mod should never modify this file
 



More information about the quake3-commits mailing list