fix some FreeBSD issues
authorBrian <brian.paul@tungstengraphics.com>
Tue, 31 Jul 2007 20:57:37 +0000 (14:57 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 31 Jul 2007 20:57:37 +0000 (14:57 -0600)
configs/freebsd
configs/freebsd-dri
src/glut/glx/glut_event.c

index db7dd3b78a04277d16559129199697fe9e6d2532..447faf9f4cf7ab40123c754d3fe85c92322d3ec9 100644 (file)
@@ -13,7 +13,7 @@ OPT_FLAGS  = -O2
 PIC_FLAGS  = -fPIC
 
 DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM \
-       -DHZ=100 -DHAVE_POSIX_MEMALIGN
+       -DHZ=100
 
 X11_INCLUDES = -I/usr/X11R6/include
 
index 402883d1de058b9b8b8e26c47de04911a98633bb..5a9310a04ed279d2073c32f01b9b67133d295676 100644 (file)
@@ -15,7 +15,7 @@ EXPAT_INCLUDES = -I/usr/local/include
 X11_INCLUDES = -I/usr/X11R6/include
 DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
        -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
-       -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
+       -DHAVE_ALIAS
 
 CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) -Wmissing-prototypes -std=c99 -Wundef -ffast-math \
        $(ASM_FLAGS) $(X11_INCLUDES) $(DEFINES)
index 4e67da674ed2d99cda18b70d659a135268b0d479..0a96e8cf71de932b5229a8051bd821c4aa511c0f 100644 (file)
@@ -24,7 +24,7 @@
 # ifdef __sgi
 #  include <bstring.h>    /* prototype for bzero used by FD_ZERO */
 # endif
-# if (defined(SVR4) || defined(CRAY) || defined(AIXV3)) && !defined(FD_SETSIZE)
+# if (defined(__FreeBSD__) || defined(SVR4) || defined(CRAY) || defined(AIXV3)) && !defined(FD_SETSIZE)
 #  include <sys/select.h> /* select system call interface */
 #  ifdef luna
 #   include <sysent.h>