Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_freebsd_config.h @ 183:4c698194c56d
nginx-0.0.1-2003-11-13-19:16:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 13 Nov 2003 16:16:33 +0000 |
parents | 3c49eaf3f522 |
children | d5f50cefc322 |
comparison
equal
deleted
inserted
replaced
182:3c49eaf3f522 | 183:4c698194c56d |
---|---|
22 #include <arpa/inet.h> | 22 #include <arpa/inet.h> |
23 #include <netdb.h> | 23 #include <netdb.h> |
24 #include <osreldate.h> | 24 #include <osreldate.h> |
25 | 25 |
26 | 26 |
27 /* TODO: autoconf */ | |
28 #if __FreeBSD_version < 300007 | |
29 typedef u_int64_t uint64_t; | |
30 typedef u_int32_t uintptr_t; | |
31 #endif | |
32 | |
33 | |
34 #if __FreeBSD_version < 330002 /* exactly */ | |
35 typedef uint32_t socklen_t; | |
36 #endif | |
37 | |
38 | |
27 #if (i386) | 39 #if (i386) |
28 | 40 |
29 #define OFF_FMT "%lld" | 41 #define OFF_FMT "%lld" |
30 #define SIZE_FMT "%d" | 42 #define SIZE_FMT "%d" |
31 #define SIZEX_FMT "%x" | 43 #define SIZEX_FMT "%x" |
32 #define TIME_FMT "%lu" | |
33 | 44 |
34 #else /* amd64, alpha, sparc64, ia64 */ | 45 #else /* amd64, alpha, sparc64, ia64 */ |
35 | 46 |
36 #define OFF_FMT "%ld" | 47 #define OFF_FMT "%ld" |
37 #define SIZE_FMT "%ld" | 48 #define SIZE_FMT "%ld" |
38 #define SIZEX_FMT "%lx" | 49 #define SIZEX_FMT "%lx" |
39 #define TIME_FMT "%lu" | |
40 | 50 |
41 #endif | 51 #endif |
42 | 52 |
53 #define TIME_FMT "%lu" | |
43 #define PID_FMT "%d" | 54 #define PID_FMT "%d" |
55 #define RLIM_FMT "%lld" | |
44 | 56 |
45 | 57 |
46 #ifndef HAVE_SELECT | 58 #ifndef HAVE_SELECT |
47 #define HAVE_SELECT 1 | 59 #define HAVE_SELECT 1 |
48 #endif | 60 #endif |