forked from Mirrors/freeswitch
FS-6996: #resolve fix define change as of glibc 2.20 for _BSD_SOURCE -> _DEFAULT_SOURCE
This commit is contained in:
parent
f1df8d6096
commit
0cf770a836
|
@ -2,6 +2,9 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
#ifndef _DEFAULT_SOURCE
|
||||||
|
#define _DEFAULT_SOURCE
|
||||||
|
#endif
|
||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
#include "private/ftdm_core.h"
|
#include "private/ftdm_core.h"
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
#ifndef _DEFAULT_SOURCE
|
||||||
|
#define _DEFAULT_SOURCE
|
||||||
|
#endif
|
||||||
#ifndef _BSD_SOURCE
|
#ifndef _BSD_SOURCE
|
||||||
#define _BSD_SOURCE /* for strsep() */
|
#define _BSD_SOURCE /* for strsep() */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -40,6 +40,9 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#ifdef WP_DEBUG_IO
|
#ifdef WP_DEBUG_IO
|
||||||
|
#ifndef _DEFAULT_SOURCE
|
||||||
|
#define _DEFAULT_SOURCE
|
||||||
|
#endif
|
||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
#include <syscall.h>
|
#include <syscall.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
#ifndef _DEFAULT_SOURCE
|
||||||
|
#define _DEFAULT_SOURCE
|
||||||
|
#endif
|
||||||
#define _BSD_SOURCE 1
|
#define _BSD_SOURCE 1
|
||||||
#endif
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -34,6 +34,9 @@
|
||||||
|
|
||||||
#define _XOPEN_SOURCE 600 /* For strdup() */
|
#define _XOPEN_SOURCE 600 /* For strdup() */
|
||||||
#define _BSD_SOURCE /* For xmlrpc_strcaseeq */
|
#define _BSD_SOURCE /* For xmlrpc_strcaseeq */
|
||||||
|
#ifndef _DEFAULT_SOURCE
|
||||||
|
#define _DEFAULT_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
#define _XOPEN_SOURCE 600 /* For strdup() */
|
#define _XOPEN_SOURCE 600 /* For strdup() */
|
||||||
#define _BSD_SOURCE /* For xmlrpc_strcaseeq() */
|
#define _BSD_SOURCE /* For xmlrpc_strcaseeq() */
|
||||||
|
#ifndef _DEFAULT_SOURCE
|
||||||
|
#define _DEFAULT_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
#define _XOPEN_SOURCE 600 /* Make sure strdup() is in <string.h> */
|
#define _XOPEN_SOURCE 600 /* Make sure strdup() is in <string.h> */
|
||||||
#define _BSD_SOURCE /* Make sure setgroups()is in <grp.h> */
|
#define _BSD_SOURCE /* Make sure setgroups()is in <grp.h> */
|
||||||
|
#ifndef _DEFAULT_SOURCE
|
||||||
|
#define _DEFAULT_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -63,6 +63,9 @@
|
||||||
#ifndef _BSD_SOURCE
|
#ifndef _BSD_SOURCE
|
||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef _DEFAULT_SOURCE
|
||||||
|
#define _DEFAULT_SOURCE
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifndef __BSD_VISIBLE
|
#ifndef __BSD_VISIBLE
|
||||||
#define __BSD_VISIBLE 1
|
#define __BSD_VISIBLE 1
|
||||||
|
|
Loading…
Reference in New Issue