changes to ap_config.h and util.c, but they might hurt someone...
please watch those two carefully.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85237
13f79535-47bb-0310-9956-
ffa450edef68
#include "ap_mmn.h" /* MODULE_MAGIC_NUMBER_ */
#ifdef WIN32
-#include "ap_config_win32.h"
#include "../os/win32/os.h"
#else
#include "ap_config_auto.h"
/* We have a POSIX wait interface */
#include <sys/wait.h>
-#define ap_wait_t int
-
-#else /* HAVE_SYS_WAIT_H */
+#ifdef WEXITSTATUS
+#define ap_wait_t int
+#else
/* We don't have a POSIX wait interface. Assume we have the old-style. Is this
* a bad assumption? */
-#include <sys/wait.h>
+/* Yessiree bob, it was... but will this work instead? */
#define ap_wait_t union wait
#define WEXITSTATUS(status) (int)((status).w_retcode)
#define WTERMSIG(status) (int)((status).w_termsig)
-
+#endif /* !WEXITSTATUS */
#endif /* HAVE_SYS_WAIT_H */
/* ap_ versions of ctype macros to make sure they deal with 8-bit chars */
#endif
/* EAGAIN apparently isn't defined on some systems */
-#ifndef HAVE_EAGAIN
+#if !defined(HAVE_EAGAIN) && !defined(EAGAIN)
#define EAGAIN EWOULDBLOCK
#endif
#define MODULE_VAR_EXPORT __declspec(dllexport)
-
+#define HAVE_MEMMOVE
#define HAVE_STRCASECMP
#define HAVE_STRNCASECMP
+#define HAVE_STRERROR
+#define HAVE_STRDUP
+#define HAVE_STRSTR
#define strcasecmp(s1, s2) stricmp(s1, s2)
#define strncasecmp(s1, s2, n) strnicmp(s1, s2, n)
+
+#define HAVE_SYS_STAT_H
#define lstat(x, y) stat(x, y)
#define S_ISLNK(m) (0)
#define S_ISREG(m) ((m & _S_IFREG) == _S_IFREG)
#ifndef HAVE_INITGROUPS
int initgroups(const char *name, gid_t basegid)
{
-#if defined(QNX) || defined(MPE) || defined(BEOS) || defined(_OSD_POSIX) || defined(TPF) || defined(__TANDEM) || defined(OS2)
+#if defined(QNX) || defined(MPE) || defined(BEOS) || defined(_OSD_POSIX) || defined(TPF) || defined(__TANDEM) || defined(OS2) || defined(WIN32)
/* QNX, MPE and BeOS do not appear to support supplementary groups. */
return 0;
#else /* ndef QNX */
}
#endif /* def NEED_INITGROUPS */
-#ifndef HAVE_WAITPID
+#if !defined(HAVE_WAITPID) && !defined(WIN32)
/* From ikluft@amdahl.com
* this is not ideal but it works for SVR3 variants
* Modified by dwd@bell-labs.com to call wait3 instead of wait because