git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14067
d0543943-73ff-0310-b7d9-
9358b9ac24b2
* copyright (c) 2005-2007 Thomas Bernard
* This software is subjet to the conditions detailed in the
* provided LICENCE file. */
-#include <stdio.h>
+#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 <string.h>
#ifdef WIN32
/* Win32 Specific includes and defines */