]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - makefile.bsd
now checks that a lightmap surfacechain is not NULL before dereferencing it
[xonotic/darkplaces.git] / makefile.bsd
index 04821ddb67a9aacc18c11bd4b69e219c325b343f..a120a69fa68dfcc7a5192b7a91d19a27e28b5109 100644 (file)
@@ -16,7 +16,12 @@ UNIX_X11LIBPATH=-L/usr/X11R6/lib
 # BSD configuration
 .if $(DP_MAKE_TARGET) == "bsd"
 
+# FreeBSD uses OSS
+.if exists(/usr/include/sys/soundcard.h)
+OBJ_SOUND=$(OBJ_OSSSOUND)
+.else
 OBJ_SOUND=$(OBJ_BSDSOUND)
+.endif
 LIB_SOUND=$(LIB_BSDSOUND)
 OBJ_CD=$(OBJ_BSDCD)