httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Moenich <moen...@us.ibm.com>
Subject [PATCH] TPF ap_config.h
Date Mon, 12 Oct 1998 16:29:56 GMT
Header files and #defines used by TPF.  Correct TPF implementation of offsetof.

Index: ap_config.h
===================================================================
RCS file: /apache/apache/src/include/ap_config.h,v
retrieving revision 1.1.1.1
diff -a -b -C3 -r1.1.1.1 ap_config.h
*** ap_config.h 1998/10/12 09:15:41     1.1.1.1
--- ap_config.h 1998/10/12 09:39:12
***************
*** 92,98 ****
  #include "os.h"
  #endif

! #if !defined(QNX) && !defined(MPE) && !defined(WIN32)
  #include <sys/param.h>
  #endif

--- 92,98 ----
  #include "os.h"
  #endif

! #if !defined(QNX) && !defined(MPE) && !defined(WIN32) && !defined(TPF)
  #include <sys/param.h>
  #endif

***************
*** 801,806 ****
--- 801,833 ----

  /* All windows stuff is now in os/win32/os.h */

+ #elif defined(TPF) /* IBM's Transaction Processing Facility operating system
+
+ #include <tpfeq.h>
+ #include <tpfio.h>
+ #include <sysapi.h>
+ #include <sysgtime.h>
+ #define PRIMECRAS 0x010000
+ #define JMP_BUF jmp_buf
+ #define NEED_INITGROUPS
+ #define NEED_STRCASECMP
+ #define NEED_STRDUP
+ #define NEED_STRNCASECMP
+ #define NO_DBM_REWRITEMAP
+ #define NO_GETTIMEOFDAY
+ #define NO_KILLPG
+ #define NO_LINGCLOSE
+ #define NO_MMAP
+ #define NO_OTHER_CHILD
+ #define NO_RELIABLE_PIPED_LOGS
+ #define NO_SETSID
+ #define NO_SHMGET
+ #define NO_SLACK
+ #define NO_TIMES
+ #define NO_USE_SIGACTION
+ #define NO_WRITEV
+ #define USE_LONGJMP
+
  #else
  /* Unknown system - Edit these to match */
  #ifdef BSD
***************
*** 906,912 ****
  #include <stdlib.h>
  #include <string.h>
  #include "ap_ctype.h"
! #if !defined(MPE) && !defined(WIN32)
  #include <sys/file.h>
  #endif
  #ifndef WIN32
--- 933,939 ----
  #include <stdlib.h>
  #include <string.h>
  #include "ap_ctype.h"
! #if !defined(MPE) && !defined(WIN32) && !defined(TPF)
  #include <sys/file.h>
  #endif
  #ifndef WIN32
***************
*** 914,923 ****
  #ifdef HAVE_SYS_SELECT_H
  #include <sys/select.h>
  #endif /* HAVE_SYS_SELECT_H */
  #include <netinet/in.h>
  #include <netdb.h>
  #include <sys/ioctl.h>
! #if !defined(MPE) && !defined(BEOS)
  #include <arpa/inet.h>                /* for inet_ntoa */
  #endif
  #include <sys/wait.h>
--- 941,952 ----
  #ifdef HAVE_SYS_SELECT_H
  #include <sys/select.h>
  #endif /* HAVE_SYS_SELECT_H */
+ #ifndef TPF
  #include <netinet/in.h>
+ #endif /* TPF */
  #include <netdb.h>
  #include <sys/ioctl.h>
! #if !defined(MPE) && !defined(BEOS) && !defined(TPF)
  #include <arpa/inet.h>      /* for inet_ntoa */
  #endif
  #include <sys/wait.h>
***************
*** 940,946 ****
  #include <time.h>             /* for ctime */
  #include <signal.h>
  #include <errno.h>
! #if !defined(QNX) && !defined(CONVEXOS11) && !defined(NEXT)
  #include <memory.h>
  #endif

--- 969,975 ----
  #include <time.h>       /* for ctime */
  #include <signal.h>
  #include <errno.h>
! #if !defined(QNX) && !defined(CONVEXOS11) && !defined(NEXT) && !defined(TPF)
  #include <memory.h>
  #endif
***************
*** 1100,1110 ****
--- 1129,1143 ----

  #endif /* !CRAY */

+ #ifdef TPF
+ #define XtOffsetOf(s_type,field) ((size_t)&(((s_type*)0)->field))
+ #else
  #ifdef offsetof
  #define XtOffsetOf(s_type,field) offsetof(s_type,field)
  #else
  #define XtOffsetOf(s_type,field) XtOffset(s_type*,field)
  #endif
+ #endif /* TPF */

  /*
   * NET_SIZE_T exists because of shortsightedness on the POSIX committee.  BSD

Joe Moenich
moenich@us.ibm.com
303 773-5483
tie-line 656-7487

Mime
View raw message