Define HAVE_UNISTD_H on Darwin/macOS: Fixes a compiler failure due to missing function prototype.
This commit is contained in:
parent
e2f01a7e8a
commit
04e4a14edc
3 changed files with 6 additions and 0 deletions
1
configure
vendored
1
configure
vendored
|
|
@ -6310,6 +6310,7 @@ case "$host" in
|
||||||
LIBS="$LIBS -framework OpenGL"
|
LIBS="$LIBS -framework OpenGL"
|
||||||
LIBS="$LIBS -framework OpenAL"
|
LIBS="$LIBS -framework OpenAL"
|
||||||
build_macosx="yes"
|
build_macosx="yes"
|
||||||
|
CFLAGS="$CFLAGS -DHAVE_UNISTD_H"
|
||||||
;;
|
;;
|
||||||
*-*-cygwin* | *-*-mingw32*)
|
*-*-cygwin* | *-*-mingw32*)
|
||||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lopengl32" >&5
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lopengl32" >&5
|
||||||
|
|
|
||||||
|
|
@ -140,6 +140,7 @@ case "$host" in
|
||||||
LIBS="$LIBS -framework OpenGL"
|
LIBS="$LIBS -framework OpenGL"
|
||||||
LIBS="$LIBS -framework OpenAL"
|
LIBS="$LIBS -framework OpenAL"
|
||||||
build_macosx="yes"
|
build_macosx="yes"
|
||||||
|
CFLAGS="$CFLAGS -DHAVE_UNISTD_H"
|
||||||
;;
|
;;
|
||||||
*-*-cygwin* | *-*-mingw32*)
|
*-*-cygwin* | *-*-mingw32*)
|
||||||
AC_CHECK_LIB([opengl32], [main], [], \
|
AC_CHECK_LIB([opengl32], [main], [], \
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,10 @@ typedef char *SLIRPcaddr_t;
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
|
# include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue