Revision
14067
Author
mikej
Date
2009-06-30 16:45:16 -0500 (Tue, 30 Jun 2009)

Log Message

fix solaris build

Modified Paths

Diff

Modified: freeswitch/trunk/libs/miniupnpc/miniupnpc.c (14066 => 14067)


--- freeswitch/trunk/libs/miniupnpc/miniupnpc.c	2009-06-30 21:15:43 UTC (rev 14066)
+++ freeswitch/trunk/libs/miniupnpc/miniupnpc.c	2009-06-30 21:45:16 UTC (rev 14067)
@@ -4,8 +4,20 @@
  * copyright (c) 2005-2007 Thomas Bernard
  * This software is subjet to the conditions detailed in the
  * provided LICENCE file. */
+#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 <stdlib.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 #ifdef WIN32
 /* Win32 Specific includes and defines */