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:
C.W. Betts 2021-06-08 15:24:21 -06:00 committed by GitHub
commit bfa73972b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,6 +160,7 @@ case "$host" in
[echo "You need to install the OpenAL library."
exit -1])
build_linux="yes"
CFLAGS="$CFLAGS -DHAVE_UNISTD_H"
;;
*-*-freebsd*)
CFLAGS="$CFLAGS -I/usr/local/include"
@ -172,6 +173,7 @@ case "$host" in
[echo "You need to install the OpenAL library."
exit -1])
build_other="yes"
CFLAGS="$CFLAGS -DHAVE_UNISTD_H"
;;
*)
AC_CHECK_LIB([GL], [glGetError], [], \