]> granicus.if.org Git - apache/commitdiff
tweak httpd -V output to show the architecture (bits in a pointer)
authorJeff Trawick <trawick@apache.org>
Tue, 4 Dec 2001 18:36:51 +0000 (18:36 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 4 Dec 2001 18:36:51 +0000 (18:36 +0000)
and whether or not APR_HAS_SENDFILE is defined

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92322 13f79535-47bb-0310-9956-ffa450edef68

server/main.c

index 5e22c8e99a563b3431134a7588abbb45710806c8..50f9afd291bb84fe725f1047102fbc46b6c364d8 100644 (file)
@@ -89,6 +89,7 @@ static void show_compile_settings(void)
     printf("Server built:   %s\n", ap_get_server_built());
     printf("Server's Module Magic Number: %u:%u\n",
           MODULE_MAGIC_NUMBER_MAJOR, MODULE_MAGIC_NUMBER_MINOR);
+    printf("Architecture:   %d-bit\n", 8 * sizeof(void *));
     printf("Server compiled with....\n");
 #ifdef BIG_SECURITY_HOLE
     printf(" -D BIG_SECURITY_HOLE\n");
@@ -105,6 +106,9 @@ static void show_compile_settings(void)
 #if APR_FILE_BASED_SHM
     printf(" -D APR_FILE_BASED_SHM\n");
 #endif
+#if APR_HAS_SENDFILE
+    printf(" -D APR_HAS_SENDFILE\n");
+#endif
 #if APR_HAS_MMAP
     printf(" -D APR_HAS_MMAP\n");
 #endif