Declare HAVE_UNISTD_H for FreeBSD and Linux
This should quiet warnings about undefined functions in the slirp source files.
This commit is contained in:
parent
84b9af3e05
commit
bfa73972b1
1 changed files with 2 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ case "$host" in
|
||||||
[echo "You need to install the OpenAL library."
|
[echo "You need to install the OpenAL library."
|
||||||
exit -1])
|
exit -1])
|
||||||
build_linux="yes"
|
build_linux="yes"
|
||||||
|
CFLAGS="$CFLAGS -DHAVE_UNISTD_H"
|
||||||
;;
|
;;
|
||||||
*-*-freebsd*)
|
*-*-freebsd*)
|
||||||
CFLAGS="$CFLAGS -I/usr/local/include"
|
CFLAGS="$CFLAGS -I/usr/local/include"
|
||||||
|
|
@ -172,6 +173,7 @@ case "$host" in
|
||||||
[echo "You need to install the OpenAL library."
|
[echo "You need to install the OpenAL library."
|
||||||
exit -1])
|
exit -1])
|
||||||
build_other="yes"
|
build_other="yes"
|
||||||
|
CFLAGS="$CFLAGS -DHAVE_UNISTD_H"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
AC_CHECK_LIB([GL], [glGetError], [], \
|
AC_CHECK_LIB([GL], [glGetError], [], \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue