martin 99/12/07 04:19:50
Modified: src Configure PORTING
src/include ap_config.h
Log:
Autodetect the presence of the <sys/param.h> header; use it if available.
This change results in fewer OS dependencies than the old (hardcoded)
"#if defined() &&..." list
Submitted by: Ovies Brabson <[EMAIL PROTECTED]>
Reviewed by: Martin Kraemer
Revision Changes Path
1.377 +1 -1 apache-1.3/src/Configure
Index: Configure
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/Configure,v
retrieving revision 1.376
retrieving revision 1.377
diff -u -r1.376 -r1.377
--- Configure 1999/11/30 15:52:00 1.376
+++ Configure 1999/12/07 12:19:48 1.377
@@ -920,7 +920,7 @@
echo "#define AP_CONFIG_AUTO_H" >>$AP_CONFIG_AUTO_H
echo " + checking for system header files"
-CHECK_FOR_HEADERS="dlfcn.h dl.h bstring.h crypt.h unistd.h sys/resource.h
sys/select.h sys/processor.h"
+CHECK_FOR_HEADERS="dlfcn.h dl.h bstring.h crypt.h unistd.h sys/resource.h
sys/select.h sys/processor.h sys/param.h"
for header in $CHECK_FOR_HEADERS; do
echo "" >>$AP_CONFIG_AUTO_H
echo "/* check: #include <$header> */" >>$AP_CONFIG_AUTO_H
1.34 +6 -0 apache-1.3/src/PORTING
Index: PORTING
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/PORTING,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- PORTING 1998/09/17 21:13:58 1.33
+++ PORTING 1999/12/07 12:19:48 1.34
@@ -200,6 +200,12 @@
functions are available as well. This is set automatically during the
Configure process and stored in the src/include/ap_config_auto.h header
file.
+
+ HAVE_SYS_PARAM_H:
+ Defined if the OS has the <sys/param.h> header file. This is
+ set automatically during the Configure process and stored in the
+ src/include/ap_config_auto.h header file.
+
--
USE_*:
1.277 +4 -4 apache-1.3/src/include/ap_config.h
Index: ap_config.h
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/include/ap_config.h,v
retrieving revision 1.276
retrieving revision 1.277
diff -u -r1.276 -r1.277
--- ap_config.h 1999/12/06 22:16:59 1.276
+++ ap_config.h 1999/12/07 12:19:50 1.277
@@ -116,10 +116,6 @@
#include "os.h"
#endif
-#if !defined(QNX) && !defined(MPE) && !defined(WIN32) && !defined(TPF) &&
!defined(NETWARE)
-#include <sys/param.h>
-#endif
-
/* Define one of these according to your system. */
#if defined(MINT)
typedef int rlim_t;
@@ -964,6 +960,10 @@
/* NEED_STRDUP is set on stupid systems that don't have strdup. */
#undef NEED_STRDUP
#endif
+
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif /* HAVE_SYS_PARAM_H */
/* stuff marked API_EXPORT is part of the API, and intended for use
* by modules