summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlestes <wlestes>2002-11-23 16:50:32 +0000
committerwlestes <wlestes>2002-11-23 16:50:32 +0000
commitf9e01af90c805ea3d6fa2abdeb5f188dc6e7f738 (patch)
tree14300e1968607e3d6c3fc8a7a68c07080c1a32c7
parentf88a4625dea8a98fded7489397eaa79c26b6d2c4 (diff)
downloadflex-f9e01af90c805ea3d6fa2abdeb5f188dc6e7f738.tar.gz
apparently on some BSD systems, we need sys/params.h; reported by millaway
-rw-r--r--configure.in2
-rw-r--r--flexdef.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 7d29cc0..01fb5c0 100644
--- a/configure.in
+++ b/configure.in
@@ -64,7 +64,7 @@ dnl checks for libraries
dnl checks for header files
AC_HEADER_STDC
-AC_CHECK_HEADERS(unistd.h stdbool.h netinet/in.h limits.h)
+AC_CHECK_HEADERS(unistd.h stdbool.h netinet/in.h limits.h sys/params.h)
AC_CHECK_HEADERS(cunistd)
dnl checks for types
diff --git a/flexdef.h b/flexdef.h
index 814a885..17a7e23 100644
--- a/flexdef.h
+++ b/flexdef.h
@@ -126,6 +126,9 @@
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
+#ifdef HAVE_SYS_PARAMS_H
+#include <sys/params.h>
+#endif
/* Special chk[] values marking the slots taking by end-of-buffer and action
* numbers.