]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6996: #resolve fix define change as of glibc 2.20 for _BSD_SOURCE -> _DEFAULT_SOURCE
authorMichael Jerris <mike@jerris.com>
Mon, 17 Nov 2014 14:27:22 +0000 (09:27 -0500)
committerMichael Jerris <mike@jerris.com>
Mon, 17 Nov 2014 14:27:22 +0000 (09:27 -0500)
libs/freetdm/src/ftdm_backtrace.c
libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c
libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c
libs/libnatpmp/natpmp.c
libs/xmlrpc-c/lib/abyss/src/conf.c
libs/xmlrpc-c/lib/abyss/src/http.c
libs/xmlrpc-c/lib/abyss/src/server.c
src/include/switch.h

index b27c8ebbe84ce7351741d7de416cf5b9f4a20e92..8f6756d939ac45770fda3532e43b055c7b16c546 100644 (file)
@@ -2,6 +2,9 @@
  *
  *
  */
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
+#endif
 #define _BSD_SOURCE
 #include "private/ftdm_core.h"
 
index 026b7b17df4589722e465d649c20bcbf47052888..2dea680987db5917e2393b969dade8653480d35e 100755 (executable)
@@ -38,6 +38,9 @@
  */
 
 #ifdef __linux__
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
+#endif
 #ifndef _BSD_SOURCE
 #define _BSD_SOURCE /* for strsep() */
 #endif
index ca60e303526d3e2effc2aed40981dae989b54940..0e8b73e9c0f28f6f9a22ce8baf0c06586330bbfa 100755 (executable)
@@ -40,6 +40,9 @@
  *
  */ 
 #ifdef WP_DEBUG_IO
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
+#endif
 #define _BSD_SOURCE
 #include <syscall.h>
 #endif
index c79e92bdfd320c1c2adc5462d77097bd69133c45..d2ff9d5fd316b83213a372a92b0cd2fceb4c4d0e 100644 (file)
@@ -15,6 +15,9 @@
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
 #ifdef __linux__
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
+#endif
 #define _BSD_SOURCE 1
 #endif
 #include <string.h>
index e0feff9f6b07d87328cd59b44a072e4441c8bfa6..891aa96c1c8f60e4a13fc51173ddc2719b234dff 100644 (file)
@@ -34,6 +34,9 @@
 
 #define _XOPEN_SOURCE 600   /* For strdup() */
 #define _BSD_SOURCE  /* For xmlrpc_strcaseeq */
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
+#endif
 
 #include <stdlib.h>
 #include <stdio.h>
index 4f9ef101180321781fdaffd788a2ef6ea64828e1..c4269e21cdbba945aa67e030c5f7e533dd34d1ba 100644 (file)
@@ -2,6 +2,9 @@
 
 #define _XOPEN_SOURCE 600   /* For strdup() */
 #define _BSD_SOURCE   /* For xmlrpc_strcaseeq() */
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
+#endif
 
 #include <ctype.h>
 #include <assert.h>
index 392f36813a71e95176f9aa9920766edb87333be8..6337dcfd78e7c1b37a7507ec032d5e92edebd82c 100644 (file)
@@ -2,6 +2,9 @@
 
 #define _XOPEN_SOURCE 600  /* Make sure strdup() is in <string.h> */
 #define _BSD_SOURCE  /* Make sure setgroups()is in <grp.h> */
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
+#endif
 
 #include <assert.h>
 #include <stdio.h>
index 2fda7e7ade6592a933ac50dbc971fc21fb016806..ca95045248281b1bd44e2b1e48956c8fb3c25b13 100644 (file)
@@ -63,6 +63,9 @@
 #ifndef _BSD_SOURCE
 #define _BSD_SOURCE
 #endif
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
+#endif
 #endif
 #ifndef __BSD_VISIBLE
 #define __BSD_VISIBLE 1