From bfa73972b1774fd843a473821a6372f43a16893a Mon Sep 17 00:00:00 2001 From: "C.W. Betts" Date: Tue, 8 Jun 2021 15:24:21 -0600 Subject: [PATCH] Declare HAVE_UNISTD_H for FreeBSD and Linux This should quiet warnings about undefined functions in the slirp source files. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 94516ae..408ac13 100644 --- a/configure.ac +++ b/configure.ac @@ -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], [], \