mirror of https://github.com/getdnsapi/getdns.git
added _BSD_SOURCE for linux to solve some lingering compile issues
This commit is contained in:
parent
ac0b808671
commit
20c6889f9d
|
@ -3248,9 +3248,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
||||||
|
|
||||||
|
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux* ) CFLAGS="$CFLAGS -D_XOPEN_SOURCE=501" # unfortunate, but needed to
|
linux* ) CFLAGS="$CFLAGS -D_BSD_SOURCE"
|
||||||
# pick up strdup() declaration
|
|
||||||
# in <string.h>
|
|
||||||
;;
|
;;
|
||||||
solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from <string.h>
|
solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from <string.h>
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -45,9 +45,7 @@ AC_PROG_CPP
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
linux* ) CFLAGS="$CFLAGS -D_XOPEN_SOURCE=501" # unfortunate, but needed to
|
linux* ) CFLAGS="$CFLAGS -D_BSD_SOURCE"
|
||||||
# pick up strdup() declaration
|
|
||||||
# in <string.h>
|
|
||||||
;;
|
;;
|
||||||
solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from <string.h>
|
solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from <string.h>
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <stringprep.h>
|
#include <stringprep.h>
|
||||||
|
|
Loading…
Reference in New Issue