@@ -104,48 +104,6 @@ extern "C" {
104104#include <string.h>
105105#endif
106106
107- #ifdef HAVE_SYS_TYPES_H
108- #include <sys/types.h>
109- #endif
110-
111- #ifdef HAVE_UNISTD_H
112- #include <unistd.h>
113- #endif
114-
115- #ifdef HAVE_SYS_TIME_H
116- #include <sys/time.h>
117- #endif
118-
119- #ifdef HAVE_SYS_RESOURCE_H
120- #include <sys/resource.h>
121- #endif
122-
123- #ifdef HAVE_NETDB_H
124- #include <netdb.h>
125- #endif
126-
127- /* The next three are for inet_*() */
128-
129- #ifdef HAVE_SYS_SOCKET_H
130- #include <sys/socket.h>
131- #endif
132-
133- #ifdef HAVE_NETINET_IN_H
134- #include <netinet/in.h>
135- #endif
136-
137- #ifdef HAVE_ARPA_INET_H
138- #include <arpa/inet.h>
139- #endif
140-
141- #ifdef HAVE_PWD_H /* XXX - For getpw*. This should be moved to unixd */
142- #include <pwd.h>
143- #endif
144-
145- #ifdef HAVE_GRP_H /* XXX - For getgr*. This should be moved to unixd */
146- #include <grp.h>
147- #endif
148-
149107/* ap_ versions of ctype macros to make sure they deal with 8-bit chars */
150108#include "ap_ctype.h"
151109
@@ -166,29 +124,6 @@ extern "C" {
166124#define ap_sigwait (a ,b ) sigwait((a),(b))
167125#endif
168126
169- /* So that we can use inline on some critical functions, and use
170- * GNUC attributes (such as to get -Wall warnings for printf-like
171- * functions). Only do this in gcc 2.7 or later ... it may work
172- * on earlier stuff, but why chance it.
173- *
174- * We've since discovered that the gcc shipped with NeXT systems
175- * as "cc" is completely broken. It claims to be __GNUC__ and so
176- * on, but it doesn't implement half of the things that __GNUC__
177- * means. In particular it's missing inline and the __attribute__
178- * stuff. So we hack around it. PR#1613. -djg
179- */
180- #if !defined(__GNUC__ ) || __GNUC__ < 2 || \
181- (__GNUC__ == 2 && __GNUC_MINOR__ < 7 ) || \
182- defined(NEXT )
183- #define ap_inline
184- #define __attribute__ (__x )
185- #define ENUM_BITFIELD (e ,n ,w ) signed int n : w
186- #else
187- #define ap_inline __inline__
188- #define USE_GNU_INLINE
189- #define ENUM_BITFIELD (e ,n ,w ) e n : w
190- #endif
191-
192127/* EAGAIN apparently isn't defined on some systems */
193128#if !defined(HAVE_EAGAIN ) && !defined(EAGAIN )
194129#define EAGAIN EWOULDBLOCK
@@ -216,19 +151,10 @@ extern "C" {
216151#endif
217152
218153#ifdef SCO5
219- /* XXX - What's this for */
220- #define SecureWare
221-
222- /* Although SCO 5 defines these in <strings.h> (note the "s") they don't have
223- consts. Sigh. */
224- extern int strcasecmp (const char * , const char * );
225- extern int strncasecmp (const char * , const char * , unsigned );
226- #endif /* SCO5 */
227-
228- /* If APR has OTHER_CHILD logic, use reliable piped logs.
154+ /* This allows Apache to run from a startup script on a SCO box in high
155+ * security (C2) mode.
229156 */
230- #if (APR_HAS_OTHER_CHILD )
231- #define HAVE_RELIABLE_PIPED_LOGS TRUE
157+ #define SecureWare
232158#endif
233159
234160/* XXX - The PHP4 comments say -D_HPUX_SOURCE is obsolete. */
@@ -251,6 +177,12 @@ extern int strncasecmp(const char *, const char *, unsigned);
251177#define USE_MEM_BASED_SCOREBOARD
252178#endif
253179
180+ /* If APR has OTHER_CHILD logic, use reliable piped logs.
181+ */
182+ #if (APR_HAS_OTHER_CHILD )
183+ #define HAVE_RELIABLE_PIPED_LOGS TRUE
184+ #endif
185+
254186#if defined(CHARSET_EBCDIC ) && !defined(APACHE_XLATE )
255187#define APACHE_XLATE
256188#endif
0 commit comments