From ad34ee09ff63538b53f3c1db17f5d3d4cee97964 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 30 Jun 2009 21:45:16 +0000 Subject: [PATCH] fix solaris build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14067 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/miniupnpc/miniupnpc.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libs/miniupnpc/miniupnpc.c b/libs/miniupnpc/miniupnpc.c index b7ca4f6f86..377923e0e3 100644 --- a/libs/miniupnpc/miniupnpc.c +++ b/libs/miniupnpc/miniupnpc.c @@ -4,8 +4,20 @@ * copyright (c) 2005-2007 Thomas Bernard * This software is subjet to the conditions detailed in the * provided LICENCE file. */ -#include +#define __EXTENSIONS__ 1 + +#ifndef MACOSX +#if !defined(_XOPEN_SOURCE) && !defined(__OpenBSD__) && !defined(__NetBSD__) +#ifndef __cplusplus +#define _XOPEN_SOURCE 600 +#endif +#endif +#ifndef __BSD_VISIBLE +#define __BSD_VISIBLE 1 +#endif +#endif #include +#include #include #ifdef WIN32 /* Win32 Specific includes and defines */