diff src/os/unix/ngx_darwin_config.h @ 2128:345a014436d4

*) move Darwin support to separate files *) Darwin sendfile() support
author Igor Sysoev <igor@sysoev.ru>
date Wed, 30 Jul 2008 12:18:07 +0000
parents src/os/unix/ngx_posix_config.h@b52cb9bf2064
children 34389dfc2061
line wrap: on
line diff
copy from src/os/unix/ngx_posix_config.h
copy to src/os/unix/ngx_darwin_config.h
--- a/src/os/unix/ngx_posix_config.h
+++ b/src/os/unix/ngx_darwin_config.h
@@ -4,35 +4,15 @@
  */
 
 
-#ifndef _NGX_POSIX_CONFIG_H_INCLUDED_
-#define _NGX_POSIX_CONFIG_H_INCLUDED_
-
-
-#if (NGX_HPUX)
-#define _XOPEN_SOURCE
-#define _XOPEN_SOURCE_EXTENDED  1
-#endif
-
+#ifndef _NGX_DARWIN_CONFIG_H_INCLUDED_
+#define _NGX_DARWIN_CONFIG_H_INCLUDED_
 
-#if (NGX_TRU64)
-#define _REENTRANT
-#endif
-
-
-#ifdef __CYGWIN__
-#define timezonevar             /* timezone is variable */
-#define NGX_BROKEN_SCM_RIGHTS   1
-#endif
 
 
 #include <sys/types.h>
 #include <sys/time.h>
-#if (NGX_HAVE_UNISTD_H)
 #include <unistd.h>
-#endif
-#if (NGX_HAVE_INTTYPES_H)
 #include <inttypes.h>
-#endif
 #include <stdarg.h>
 #include <stddef.h>             /* offsetof() */
 #include <stdio.h>
@@ -45,11 +25,8 @@
 #include <dirent.h>
 #include <glob.h>
 
-#if (NGX_HAVE_SYS_FILIO_H)
 #include <sys/filio.h>          /* FIONBIO */
-#endif
-#include <sys/ioctl.h>          /* FIONBIO */
-
+#include <sys/ioctl.h>
 #include <sys/uio.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -66,21 +43,12 @@
 #include <netdb.h>
 #include <sys/un.h>
 
-#if (NGX_HAVE_LIMITS_H)
-#include <limits.h>             /* IOV_MAX */
-#endif
-
-#ifdef __CYGWIN__
-#include <malloc.h>             /* memalign() */
-#endif
-
-#if (NGX_HAVE_CRYPT_H)
-#include <crypt.h>
-#endif
+#include <sys/sysctl.h>
+#include <xlocale.h>
 
 
 #ifndef IOV_MAX
-#define IOV_MAX   16
+#define IOV_MAX   64
 #endif
 
 
@@ -97,36 +65,23 @@
 #endif
 
 
-#if (NGX_HAVE_DEVPOLL)
-#include <sys/ioctl.h>
-#include <sys/devpoll.h>
+#define NGX_LISTEN_BACKLOG  -1
+
+
+#ifndef NGX_HAVE_INHERITED_NONBLOCK
+#define NGX_HAVE_INHERITED_NONBLOCK  1
 #endif
 
 
-#define NGX_LISTEN_BACKLOG  511
+#ifndef NGX_HAVE_CASELESS_FILESYSTEM
+#define NGX_HAVE_CASELESS_FILESYSTEM  1
+#endif
 
 
-#if (__FreeBSD__) && (__FreeBSD_version < 400017)
-
-#include <sys/param.h>          /* ALIGN() */
-
-/*
- * FreeBSD 3.x has no CMSG_SPACE() and CMSG_LEN() and has the broken CMSG_DATA()
- */
-
-#undef  CMSG_SPACE
-#define CMSG_SPACE(l)       (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l))
-
-#undef  CMSG_LEN
-#define CMSG_LEN(l)         (ALIGN(sizeof(struct cmsghdr)) + (l))
-
-#undef  CMSG_DATA
-#define CMSG_DATA(cmsg)     ((u_char *)(cmsg) + ALIGN(sizeof(struct cmsghdr)))
-
-#endif
+#define NGX_HAVE_OS_SPECIFIC_INIT    1
 
 
 extern char **environ;
 
 
-#endif /* _NGX_POSIX_CONFIG_H_INCLUDED_ */
+#endif /* _NGX_DARWIN_CONFIG_H_INCLUDED_ */