summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2007-02-13 19:00:58 +0000
committerhenning <henning@openbsd.org>2007-02-13 19:00:58 +0000
commit746ec8e38aa5d5de619d8c125f455ed2fe93caf4 (patch)
tree4a5db4b4cb56274c5bc6fd6afafe971d086179dd
parentcrontab -e /tmp//crontab.ynUyD24939 versus /tmp/crontab.ynUyD24939. (diff)
downloadwireguard-openbsd-746ec8e38aa5d5de619d8c125f455ed2fe93caf4.tar.xz
wireguard-openbsd-746ec8e38aa5d5de619d8c125f455ed2fe93caf4.zip
unbreak compile on 64bit systems; no cookie for espie. ok millert
-rw-r--r--usr.sbin/httpd/src/Configure30
-rw-r--r--usr.sbin/httpd/src/include/ap_config_auto.h2
2 files changed, 7 insertions, 25 deletions
diff --git a/usr.sbin/httpd/src/Configure b/usr.sbin/httpd/src/Configure
index b4d02bef2b6..8b9093bb2c2 100644
--- a/usr.sbin/httpd/src/Configure
+++ b/usr.sbin/httpd/src/Configure
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: Configure,v 1.25 2007/02/13 00:37:24 espie Exp $
+# $OpenBSD: Configure,v 1.26 2007/02/13 19:00:58 henning Exp $
## ====================================================================
## The Apache Software License, Version 1.1
##
@@ -2343,29 +2343,11 @@ fi
##
## Now compare the sizes of off_t to long
##
-AP_TYPE_OFF_T=`${SHELL} helpers/TestCompile -r sizeof off_t`
-if [ "x$AP_TYPE_OFF_T" = "x" ]; then
- AP_TYPE_OFF_T="unknown_off_t"
-fi
-
-AP_TYPE_LONG=`${SHELL} helpers/TestCompile -r sizeof long`
-if [ "x$AP_TYPE_LONG" = "x" ]; then
- AP_TYPE_LONG="unknown_long"
-fi
-
-if [ "x$AP_TYPE_OFF_T" != "x$AP_TYPE_LONG" ]; then
- echo "" >>$AP_CONFIG_AUTO_H
- echo "/* determine: is off_t a quad */" >>$AP_CONFIG_AUTO_H
- echo "#ifndef AP_OFF_T_IS_QUAD" >>$AP_CONFIG_AUTO_H
- echo "#define AP_OFF_T_IS_QUAD 1" >>$AP_CONFIG_AUTO_H
- echo "#endif" >>$AP_CONFIG_AUTO_H
-else
- echo "" >>$AP_CONFIG_AUTO_H
- echo "/* determine: is off_t a quad */" >>$AP_CONFIG_AUTO_H
- echo "#ifdef AP_OFF_T_IS_QUAD" >>$AP_CONFIG_AUTO_H
- echo "#undef AP_OFF_T_IS_QUAD" >>$AP_CONFIG_AUTO_H
- echo "#endif" >>$AP_CONFIG_AUTO_H
-fi
+echo "" >>$AP_CONFIG_AUTO_H
+echo "/* sizeof(off_t) == sizeof(quad_t) on OpenBSD */" >>$AP_CONFIG_AUTO_H
+echo "#ifndef AP_OFF_T_IS_QUAD" >>$AP_CONFIG_AUTO_H
+echo "#define AP_OFF_T_IS_QUAD 1" >>$AP_CONFIG_AUTO_H
+echo "#endif" >>$AP_CONFIG_AUTO_H
####################################################################
## Finish building ap_config_auto.h
diff --git a/usr.sbin/httpd/src/include/ap_config_auto.h b/usr.sbin/httpd/src/include/ap_config_auto.h
index 2311bb802c8..b7cae81d426 100644
--- a/usr.sbin/httpd/src/include/ap_config_auto.h
+++ b/usr.sbin/httpd/src/include/ap_config_auto.h
@@ -61,7 +61,7 @@
#define HAVE_ISNAN 1
#endif
-/* determine: is off_t a quad */
+/* sizeof(off_t) == sizeof(quad_t) on OpenBSD */
#ifndef AP_OFF_T_IS_QUAD
#define AP_OFF_T_IS_QUAD 1
#endif