From 2f805808829049031fa89ff6ac00db68ec6d063d Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 25 Feb 2007 15:22:22 +0000 Subject: [PATCH] sys/param.h should define BSD on bsd systems. Do not redefine it. --- stepmania/configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index 2694ee13fc..12b8320c8a 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -50,6 +50,8 @@ esac # Define UNIX for all Unix-like systems. Don't define it for cross-compiling to # non-Unix-like systems. (-DUNIX selects the archutils and ArchHooks to use; if # your platform doesn't use the Unix ones, you probably don't want to define UNIX.) + +AC_CHECK_HEADERS([sys/param.h]) case $host_os in *linux*) AC_DEFINE(LINUX, 1, [Linux]) @@ -59,7 +61,10 @@ case $host_os in ;; *bsd*) - AC_DEFINE(BSD, 1, [BSD]) + AC_CHECK_DECL(BSD,,AC_DEFINE(BSD, 1, [BSD]),[ +#if HAVE_SYS_PARAM_H +#include +#endif]) AC_DEFINE(UNIX, 1, [Unix]) bsd=yes unix=yes