From: Martin Kraemer Date: Mon, 8 Oct 2001 13:59:39 +0000 (+0000) Subject: BS2000 now auto-detects union semun X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d0aa38cdbcb5af0477fb8adfab45386ca581169;p=thirdparty%2Fapache%2Fhttpd.git BS2000 now auto-detects union semun git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@91349 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/Configure b/src/Configure index 9afd5ba3bcd..22df931f322 100755 --- a/src/Configure +++ b/src/Configure @@ -1620,6 +1620,14 @@ case "$PLAT" in TLIB='-ldl' fi fi + # Test for the presence of the "union semun": + if TCADDINCL='#include +#include +#include ' ./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 ' ./helpers/TestCompile sizeof _rini_struct; then CFLAGS="$CFLAGS -DHAVE_RINI_STRUCT" diff --git a/src/include/ap_config.h b/src/include/ap_config.h index a40b671afe8..f6f8bbb0590 100644 --- a/src/include/ap_config.h +++ b/src/include/ap_config.h @@ -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 */ #undef NEED_STRCASECMP