aboutsummaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-18 16:49:00 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-11-18 16:49:00 +0000
commit222a2adf40eb25ff613c251f15032f1e39d7f609 (patch)
tree703e825cbfacdac4e1fdc73889371755bf5f68bb /src/os
parent0b2b4ccd2c8a31caea0ef760b55a63c2fc169838 (diff)
downloadnginx-222a2adf40eb25ff613c251f15032f1e39d7f609.tar.gz
nginx-222a2adf40eb25ff613c251f15032f1e39d7f609.zip
nginx-0.0.1-2003-11-18-19:49:00 import
Diffstat (limited to 'src/os')
-rw-r--r--src/os/unix/ngx_freebsd_config.h8
-rw-r--r--src/os/unix/ngx_linux_config.h2
-rw-r--r--src/os/unix/ngx_solaris_config.h2
3 files changed, 7 insertions, 5 deletions
diff --git a/src/os/unix/ngx_freebsd_config.h b/src/os/unix/ngx_freebsd_config.h
index c0204468c..57b98cc59 100644
--- a/src/os/unix/ngx_freebsd_config.h
+++ b/src/os/unix/ngx_freebsd_config.h
@@ -33,11 +33,13 @@ typedef u_int32_t uintptr_t;
#endif
+/* TODO: autoconf ??? */
#if __FreeBSD_version < 330002 /* exactly */
typedef uint32_t socklen_t;
#endif
+/* TODO: autoconf */
#if (i386)
#define OFF_FMT "%lld"
@@ -52,7 +54,7 @@ typedef uint32_t socklen_t;
#endif
-#define TIME_FMT "%lu"
+#define TIME_FMT "%ld"
#define PID_FMT "%d"
#define RLIM_FMT "%lld"
@@ -91,8 +93,8 @@ typedef uint32_t socklen_t;
/* STUB */
-#define HAVE_PREAD 1
-#define HAVE_PWRITE 1
+#define HAVE_PREAD 0
+#define HAVE_PWRITE 0
#define HAVE_LOCALTIME_R 1
diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h
index 962d17efc..22bb7c756 100644
--- a/src/os/unix/ngx_linux_config.h
+++ b/src/os/unix/ngx_linux_config.h
@@ -34,7 +34,7 @@
#define OFF_FMT "%lld"
#define SIZE_FMT "%d"
#define SIZEX_FMT "%x"
-#define TIME_FMT "%lu"
+#define TIME_FMT "%ld"
#define PID_FMT "%d"
#define RLIM_FMT "%lu"
diff --git a/src/os/unix/ngx_solaris_config.h b/src/os/unix/ngx_solaris_config.h
index fe680b808..e592355e1 100644
--- a/src/os/unix/ngx_solaris_config.h
+++ b/src/os/unix/ngx_solaris_config.h
@@ -33,7 +33,7 @@ typedef uint32_t u_int32_t;
#define OFF_FMT "%lld"
#define SIZE_FMT "%d"
#define SIZEX_FMT "%x"
-#define TIME_FMT "%lu"
+#define TIME_FMT "%ld"
#define PID_FMT "%ld"
#define RLIM_FMT "%lu"