From 48b03a035bc687dd8ff0372cce70c996c4ebc7a6 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Mon, 7 Feb 2011 05:20:31 +0000 Subject: [PATCH] Ok, getifaddrs() is not POSIX compliant. Fix #3984 as suggested by Vincent Cojot --- code/client/libmumblelink.c | 3 +++ code/qcommon/q_shared.h | 8 -------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/code/client/libmumblelink.c b/code/client/libmumblelink.c index e2e1c42b..40d1eb1b 100644 --- a/code/client/libmumblelink.c +++ b/code/client/libmumblelink.c @@ -25,6 +25,9 @@ #define uint32_t UINT32 #else #include +#ifdef __sun +#define _POSIX_C_SOURCE 199309L +#endif #include #include #include diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h index df4d8def..56734dce 100644 --- a/code/qcommon/q_shared.h +++ b/code/qcommon/q_shared.h @@ -23,14 +23,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #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