]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
BS2000 now auto-detects union semun
authorMartin Kraemer <martin@apache.org>
Mon, 8 Oct 2001 13:59:39 +0000 (13:59 +0000)
committerMartin Kraemer <martin@apache.org>
Mon, 8 Oct 2001 13:59:39 +0000 (13:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@91349 13f79535-47bb-0310-9956-ffa450edef68

src/Configure
src/include/ap_config.h

index 9afd5ba3bcdbab4070d983b2c1a30bc04bcd5ab8..22df931f32243526d2071e94a0c479898c3163cd 100755 (executable)
@@ -1620,6 +1620,14 @@ case "$PLAT" in
                TLIB='-ldl'
            fi
        fi
+       # Test for the presence of the "union semun":
+       if TCADDINCL='#include <sys/types.h>
+#include <sys/ipc.h>
+#include <sys/sem.h>' ./helpers/TestCompile sizeof "union semun"; then
+            : Okay, union semun is defined
+       else
+           CFLAGS="$CFLAGS -DNEED_UNION_SEMUN"
+       fi
        # Test for the presence of the _rini_struct typedef:
        if TCADDINCL='#include <pwd.h>' ./helpers/TestCompile sizeof _rini_struct; then
            CFLAGS="$CFLAGS -DHAVE_RINI_STRUCT"
index a40b671afe82ef92a62f94e2cab2f73a2516ab68..f6f8bbb059011c216900e62a82177820da49b944 100644 (file)
@@ -601,7 +601,6 @@ extern char *crypt();
 #define HAVE_SHMGET 1
 #define USE_SHMGET_SCOREBOARD
 #ifdef _OSD_POSIX /* BS2000-POSIX mainframe needs initgroups */
-#define NEED_UNION_SEMUN
 #define NEED_HASHBANG_EMUL /* execve() doesn't start shell scripts by default */
 #define _KMEMUSER          /* Enable SHM_R/SHM_W defines in <shm.h> */
 #undef NEED_STRCASECMP