Ignore:
Timestamp:
Feb 25, 2008, 4:00:02 AM (14 years ago)
Author:
charles
Message:

patch from SoftwareElves? to get libevent building again on osx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/macosx-libevent-config.h

    r5055 r5108  
    1 /* config.h.  Generated by configure.  */
    2 /* config.h.in.  Generated from configure.in by autoheader.  */
    3 /* Define if kqueue works correctly with pipes */
    4 #define HAVE_WORKING_KQUEUE 1
    5 
    6 /* Define to `unsigned long long' if <sys/types.h> doesn't define.  */
    7 /* #undef u_int64_t */
    8 
    9 /* Define to `unsigned int' if <sys/types.h> doesn't define.  */
    10 /* #undef u_int32_t */
    11 
    12 /* Define to `unsigned short' if <sys/types.h> doesn't define.  */
    13 /* #undef u_int16_t */
    14 
    15 /* Define to `unsigned char' if <sys/types.h> doesn't define.  */
    16 /* #undef u_int8_t */
    17 
    18 /* Define if timeradd is defined in <sys/time.h> */
    19 #define HAVE_TIMERADD 1
    20 #ifndef HAVE_TIMERADD
    21 /* #undef timersub */
    22 #define timeradd(tvp, uvp, vvp)                                         \
    23         do {                                                            \
    24                 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec;          \
    25                 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec;       \
    26                 if ((vvp)->tv_usec >= 1000000) {                        \
    27                         (vvp)->tv_sec++;                                \
    28                         (vvp)->tv_usec -= 1000000;                      \
    29                 }                                                       \
    30         } while (0)
    31 #define timersub(tvp, uvp, vvp)                                         \
    32         do {                                                            \
    33                 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec;          \
    34                 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec;       \
    35                 if ((vvp)->tv_usec < 0) {                               \
    36                         (vvp)->tv_sec--;                                \
    37                         (vvp)->tv_usec += 1000000;                      \
    38                 }                                                       \
    39         } while (0)
    40 #endif /* !HAVE_TIMERADD */
    41 
    42 #define HAVE_TIMERCLEAR 1
    43 #ifndef HAVE_TIMERCLEAR
    44 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
    45 #endif
    46 
    47 #define HAVE_TIMERCMP 1
    48 #ifndef HAVE_TIMERCMP
    49 /* #undef timercmp */
    50 #define timercmp(tvp, uvp, cmp)                                         \
    51         (((tvp)->tv_sec == (uvp)->tv_sec) ?                             \
    52          ((tvp)->tv_usec cmp (uvp)->tv_usec) :                          \
    53          ((tvp)->tv_sec cmp (uvp)->tv_sec))
    54 #endif
    55 
    56 #define HAVE_TIMERISSET 1
    57 #ifndef HAVE_TIMERISSET
    58 /* #undef timerisset */
    59 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
    60 #endif
    61 
    62 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
    63 #define HAVE_TAILQFOREACH 1
    64 #ifndef HAVE_TAILQFOREACH
    65 #define TAILQ_FIRST(head)               ((head)->tqh_first)
    66 #define TAILQ_END(head)                 NULL
    67 #define TAILQ_NEXT(elm, field)          ((elm)->field.tqe_next)
    68 #define TAILQ_FOREACH(var, head, field)                                 \
    69         for((var) = TAILQ_FIRST(head);                                  \
    70             (var) != TAILQ_END(head);                                   \
    71             (var) = TAILQ_NEXT(var, field))
    72 #define TAILQ_INSERT_BEFORE(listelm, elm, field) do {                   \
    73         (elm)->field.tqe_prev = (listelm)->field.tqe_prev;              \
    74         (elm)->field.tqe_next = (listelm);                              \
    75         *(listelm)->field.tqe_prev = (elm);                             \
    76         (listelm)->field.tqe_prev = &(elm)->field.tqe_next;             \
    77 } while (0)
    78 #endif /* TAILQ_FOREACH */
    79 
    80 /* Define to __FUNCTION__ or __file__ if your compiler doesn't have __func__ */
    81 /* #undef __func__ */
    82 
    83 /* Define if clock_gettime is available in libc */
    84 /* #undef DNS_USE_CPU_CLOCK_FOR_ID */
    85 
    86 /* Define is no secure id variant is available */
    87 #define DNS_USE_GETTIMEOFDAY_FOR_ID 1
    88 
    89 /* Define to 1 if you have the `clock_gettime' function. */
    90 /* #undef HAVE_CLOCK_GETTIME */
    91 
    92 /* Define if /dev/poll is available */
    93 /* #undef HAVE_DEVPOLL */
    94 
    95 /* Define to 1 if you have the <dlfcn.h> header file. */
    96 #define HAVE_DLFCN_H 1
    97 
    98 /* Define if your system supports the epoll system calls */
    99 /* #undef HAVE_EPOLL */
    100 
    101 /* Define to 1 if you have the `epoll_ctl' function. */
    102 /* #undef HAVE_EPOLL_CTL */
    103 
    104 /* Define if your system supports event ports */
    105 /* #undef HAVE_EVENT_PORTS */
    106 
    107 /* Define to 1 if you have the `fcntl' function. */
    108 #define HAVE_FCNTL 1
    109 
    110 /* Define to 1 if you have the <fcntl.h> header file. */
    111 #define HAVE_FCNTL_H 1
    112 
    113 /* Define to 1 if you have the `getaddrinfo' function. */
    114 #define HAVE_GETADDRINFO 1
    115 
    116 /* Define to 1 if you have the `getnameinfo' function. */
    117 #define HAVE_GETNAMEINFO 1
    118 
    119 /* Define to 1 if you have the `gettimeofday' function. */
    120 #define HAVE_GETTIMEOFDAY 1
    121 
    122 /* Define to 1 if you have the `inet_ntop' function. */
    123 #define HAVE_INET_NTOP 1
    124 
    125 /* Define to 1 if you have the <inttypes.h> header file. */
    126 #define HAVE_INTTYPES_H 1
    127 
    128 /* Define to 1 if you have the `kqueue' function. */
    129 #define HAVE_KQUEUE 1
    130 
    131 /* Define to 1 if you have the `nsl' library (-lnsl). */
    132 /* #undef HAVE_LIBNSL */
    133 
    134 /* Define to 1 if you have the `resolv' library (-lresolv). */
    135 #define HAVE_LIBRESOLV 1
    136 
    137 /* Define to 1 if you have the `rt' library (-lrt). */
    138 /* #undef HAVE_LIBRT */
    139 
    140 /* Define to 1 if you have the `socket' library (-lsocket). */
    141 /* #undef HAVE_LIBSOCKET */
    142 
    143 /* Define to 1 if you have the <memory.h> header file. */
    144 #define HAVE_MEMORY_H 1
    145 
    146 /* Define to 1 if you have the <netinet/in6.h> header file. */
    147 /* #undef HAVE_NETINET_IN6_H */
    148 
    149 /* Define to 1 if you have the `poll' function. */
    150 #define HAVE_POLL 1
    151 
    152 /* Define to 1 if you have the <poll.h> header file. */
    153 #define HAVE_POLL_H 1
    154 
    155 /* Define to 1 if you have the `port_create' function. */
    156 /* #undef HAVE_PORT_CREATE */
    157 
    158 /* Define to 1 if you have the <port.h> header file. */
    159 /* #undef HAVE_PORT_H */
    160 
    161 /* Define if your system supports POSIX realtime signals */
    162 /* #undef HAVE_RTSIG */
    163 
    164 /* Define to 1 if you have the `select' function. */
    165 #define HAVE_SELECT 1
    166 
    167 /* Define if F_SETFD is defined in <fcntl.h> */
    168 #define HAVE_SETFD 1
    169 
    170 /* Define to 1 if you have the `sigaction' function. */
    171 #define HAVE_SIGACTION 1
    172 
    173 /* Define to 1 if you have the `signal' function. */
    174 #define HAVE_SIGNAL 1
    175 
    176 /* Define to 1 if you have the <signal.h> header file. */
    177 #define HAVE_SIGNAL_H 1
    178 
    179 /* Define to 1 if you have the `sigtimedwait' function. */
    180 /* #undef HAVE_SIGTIMEDWAIT */
    181 
    182 /* Define to 1 if you have the <stdarg.h> header file. */
    183 #define HAVE_STDARG_H 1
    184 
    185 /* Define to 1 if you have the <stdint.h> header file. */
    186 #define HAVE_STDINT_H 1
    187 
    188 /* Define to 1 if you have the <stdlib.h> header file. */
    189 #define HAVE_STDLIB_H 1
    190 
    191 /* Define to 1 if you have the <strings.h> header file. */
    192 #define HAVE_STRINGS_H 1
    193 
    194 /* Define to 1 if you have the <string.h> header file. */
    195 #define HAVE_STRING_H 1
    196 
    197 /* Define to 1 if you have the `strlcpy' function. */
    198 #define HAVE_STRLCPY 1
    199 
    200 /* Define to 1 if you have the `strsep' function. */
    201 #define HAVE_STRSEP 1
    202 
    203 /* Define to 1 if you have the `strtoll' function. */
    204 #define HAVE_STRTOLL 1
    205 
    206 /* Define to 1 if you have the `strtok_r' function. */
    207 #define HAVE_STRTOK_R 1
    208 
    209 /* Define to 1 if the system has the type `struct in6_addr'. */
    210 #define HAVE_STRUCT_IN6_ADDR 1
    211 
    212 /* Define to 1 if you have the <sys/devpoll.h> header file. */
    213 /* #undef HAVE_SYS_DEVPOLL_H */
    214 
    215 /* Define to 1 if you have the <sys/epoll.h> header file. */
    216 /* #undef HAVE_SYS_EPOLL_H */
    217 
    218 /* Define to 1 if you have the <sys/event.h> header file. */
    219 #define HAVE_SYS_EVENT_H 1
    220 
    221 /* Define to 1 if you have the <sys/ioctl.h> header file. */
    222 #define HAVE_SYS_IOCTL_H 1
    223 
    224 /* Define to 1 if you have the <sys/queue.h> header file. */
    225 #define HAVE_SYS_QUEUE_H 1
    226 
    227 /* Define to 1 if you have the <sys/select.h> header file. */
    228 #define HAVE_SYS_SELECT_H 1
    229 
    230 /* Define to 1 if you have the <sys/socket.h> header file. */
    231 #define HAVE_SYS_SOCKET_H 1
    232 
    233 /* Define to 1 if you have the <sys/stat.h> header file. */
    234 #define HAVE_SYS_STAT_H 1
    235 
    236 /* Define to 1 if you have the <sys/time.h> header file. */
    237 #define HAVE_SYS_TIME_H 1
    238 
    239 /* Define to 1 if you have the <sys/types.h> header file. */
    240 #define HAVE_SYS_TYPES_H 1
    241 
    242 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
    243 #define HAVE_TAILQFOREACH 1
    244 
    245 /* Define if timeradd is defined in <sys/time.h> */
    246 #define HAVE_TIMERADD 1
    247 
    248 /* Define if timerclear is defined in <sys/time.h> */
    249 #define HAVE_TIMERCLEAR 1
    250 
    251 /* Define if timercmp is defined in <sys/time.h> */
    252 #define HAVE_TIMERCMP 1
    253 
    254 /* Define if timerisset is defined in <sys/time.h> */
    255 #define HAVE_TIMERISSET 1
    256 
    257 /* Define to 1 if you have the <unistd.h> header file. */
    258 #define HAVE_UNISTD_H 1
    259 
    260 /* Define to 1 if you have the `vasprintf' function. */
    261 #define HAVE_VASPRINTF 1
    262 
    263 /* Define if kqueue works correctly with pipes */
    264 #define HAVE_WORKING_KQUEUE 1
    265 
    266 /* Define if realtime signals work on pipes */
    267 /* #undef HAVE_WORKING_RTSIG */
    268 
    269 /* Name of package */
    270 #define PACKAGE "libevent"
    271 
    272 /* Define to the address where bug reports for this package should be sent. */
    273 #define PACKAGE_BUGREPORT ""
    274 
    275 /* Define to the full name of this package. */
    276 #define PACKAGE_NAME ""
    277 
    278 /* Define to the full name and version of this package. */
    279 #define PACKAGE_STRING ""
    280 
    281 /* Define to the one symbol short name of this package. */
    282 #define PACKAGE_TARNAME ""
    283 
    284 /* Define to the version of this package. */
    285 #define PACKAGE_VERSION ""
    286 
    287 /* Define to 1 if you have the ANSI C header files. */
    288 #define STDC_HEADERS 1
    289 
    290 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
    291 #define TIME_WITH_SYS_TIME 1
    292 
    293 /* Version number of package */
    294 #define VERSION "1.3.99-trunk"
    295 
    296 /* Define to appropriate substitue if compiler doesnt have __func__ */
    297 /* #undef __func__ */
    298 
    299 /* Define to empty if `const' does not conform to ANSI C. */
    300 /* #undef const */
    301 
    302 /* Define to `__inline__' or `__inline' if that's what the C compiler
    303    calls it, or to nothing if 'inline' is not supported under any name.  */
    304 #ifndef __cplusplus
    305 /* #undef inline */
    306 #endif
    307 
    308 /* Define to `int' if <sys/types.h> does not define. */
    309 /* #undef pid_t */
    310 
    311 /* Define to `unsigned' if <sys/types.h> does not define. */
    312 /* #undef size_t */
    313 
    314 /* Define to unsigned int if you dont have it */
    315 /* #undef socklen_t */
    316 
    317 /* Define to `unsigned short' if <sys/types.h> does not define. */
    318 /* #undef uint16_t */
    319 
    320 /* Define to `unsigned int' if <sys/types.h> does not define. */
    321 /* #undef uint32_t */
    322 
    323 /* Define to `unsigned long long' if <sys/types.h> does not define. */
    324 /* #undef uint64_t */
    325 
    326 /* Define to `unsigned char' if <sys/types.h> does not define. */
    327 /* #undef uint8_t */
Note: See TracChangeset for help on using the changeset viewer.