git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13392
d0543943-73ff-0310-b7d9-
9358b9ac24b2
#define _XOPEN_SOURCE 600
#endif
#endif
+#ifdef __linux__
+#ifndef _BSD_SOURCE
+#define _BSD_SOURCE
+#endif
+#endif
#ifndef __BSD_VISIBLE
#define __BSD_VISIBLE 1
#endif
+#ifdef __linux__
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+#endif
#endif
#include <stdlib.h>
#include <stdio.h>
*
*/
-#ifdef __linux__
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-#endif
-
#include <switch.h>
#ifndef WIN32
#include <switch_private.h>
*/
-#ifdef __linux__
-#define _BSD_SOURCE
-#endif
#include <switch.h>
#include <switch_version.h>