/* config.h. Generated by configure. */ /* config.h.in. Generated from configure.in by autoheader. */ /* Define if your raw sockets have arguments in host order as in BSD. */ /* #undef BSD_RAWSOCK_ORDER */ /* Define if your system knows about struct sockaddr_storage */ /* #undef HAVE_SOCKADDR_STORAGE */ /* Define to int if your system does not know about sa_family_t */ /* #undef sa_family_t */ /* Define to int if your system does not know about socklen_t */ #define socklen_t int /* Define to `unsigned long long' if doesn't define. */ #define u_int64_t unsigned long long /* Define to `unsigned int' if doesn't define. */ #define u_int32_t unsigned int /* Define to `unsigned short' if doesn't define. */ #define u_int16_t unsigned short /* Define to `unsigned char' if doesn't define. */ #define u_int8_t unsigned char /* Undefine if contains this, otherwise define to 1 */ /* #undef NI_NUMERICHOST */ /* Undefine if contains this, otherwise define to 256 */ /* #undef NI_MAXHOST */ /* Undefine if contains this, otherwise define to 32 */ #define NI_MAXSERV 32 /* Define to 1 if you have the `basename' function. */ #define HAVE_BASENAME 1 /* Define if your libdb has 1.85 compat */ /* #undef HAVE_DB_185_H */ /* Define if your system has libdb */ #define HAVE_DB_H 1 /* Define to 1 if you have the `dirname' function. */ #define HAVE_DIRNAME 1 /* Define to 1 if you have the `getaddrinfo' function. */ #define HAVE_GETADDRINFO 1 /* Define to 1 if you have the `gettimeofday' function. */ #define HAVE_GETTIMEOFDAY 1 /* Define to 1 if you have the `inet_aton' function. */ #define HAVE_INET_ATON 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_INTTYPES_H */ /* Define to 1 if you have the header file. */ #define HAVE_LIBGEN_H 1 /* Define to 1 if you have the `socket' library (-lsocket). */ /* #undef HAVE_LIBSOCKET */ /* Define if queue.h has LISTFIRST */ #define HAVE_LISTFIRST 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_MEMORY_H */ /* Define to 1 if you have the `memset' function. */ #define HAVE_MEMSET 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_STDINT_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_STDLIB_H */ /* Define to 1 if you have the `strcasecmp' function. */ #define HAVE_STRCASECMP 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_STRINGS_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_STRING_H */ /* Define to 1 if you have the `strlcat' function. */ #define HAVE_STRLCAT 1 /* Define to 1 if you have the `strlcpy' function. */ #define HAVE_STRLCPY 1 /* Define to 1 if you have the `strncasecmp' function. */ #define HAVE_STRNCASECMP 1 /* Define to 1 if you have the `strsep' function. */ #define HAVE_STRSEP 1 /* Define if struct addrinfo exists */ #define HAVE_STRUCT_ADDRINFO 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_QUEUE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_STAT_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_TYPES_H */ /* Define if queue.h defines TAILQFOREEACH */ #define HAVE_TAILQFOREACH 1 /* Define if your system has timeradd */ #define HAVE_TIMERADD 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_UNISTD_H */ /* Define to 1 if you have the `warnx' function. */ #define HAVE_WARNX 1 /* Define to 32 if NI_MAXSERV does not exist */ #define NI_MAXSERV 32 /* Name of package */ #define PACKAGE "crawl" /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "" /* Define to the full name of this package. */ #define PACKAGE_NAME "" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "" /* Define to the version of this package. */ #define PACKAGE_VERSION "" /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Define to 1 if you can safely include both and . */ /* #undef TIME_WITH_SYS_TIME */ /* Version number of package */ #define VERSION "0.4" /* Define to empty if `const' does not conform to ANSI C. */ #define const /* Define to `unsigned' if does not define. */ #define size_t unsigned /* Define to int if socklen_t does not exist */ #define socklen_t int /* Define to `unsigned short' if does not define. */ #define u_int16_t unsigned short /* Define to `unsigned int' if does not define. */ #define u_int32_t unsigned int /* Define to `unsigned long long' if does not define. */ #define u_int64_t unsigned long long /* Define to `unsigned char' if does not define. */ #define u_int8_t unsigned char /* Take care of getaddrinfo */ #define HAVE_STRUCT_ADDRINFO 1 #ifndef HAVE_STRUCT_ADDRINFO #include "getaddrinfo.h" #endif /* !HAVE_STRUCT_ADDRINFO */ #ifndef HAVE_GETADDRINFO int getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res); #endif /* !HAVE_GETADDRINFO */ /* Define if timeradd is defined in */ #define HAVE_TIMERADD 1 #ifndef HAVE_TIMERADD #define timeradd(tvp, uvp, vvp) \ do { \ (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ if ((vvp)->tv_usec >= 1000000) { \ (vvp)->tv_sec++; \ (vvp)->tv_usec -= 1000000; \ } \ } while (0) #define timersub(tvp, uvp, vvp) \ do { \ (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \ if ((vvp)->tv_usec < 0) { \ (vvp)->tv_sec--; \ (vvp)->tv_usec += 1000000; \ } \ } while (0) #endif /* !HAVE_TIMERADD */ /* Define if fd_mask is defined in */ /* #undef HAVE_FDMASK_IN_SELECT */ /* Define if you have the header file. */ #define HAVE_DB_H 1 /* Define if you have the header file. */ /* #undef HAVE_DB_185_H */ /* Define if timeradd is defined in */ #define HAVE_TIMERADD 1 #ifndef HAVE_TIMERADD /* #undef timercmp */ #define timercmp(tvp, uvp, cmp) \ (((tvp)->tv_sec == (uvp)->tv_sec) ? \ ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ ((tvp)->tv_sec cmp (uvp)->tv_sec)) #define timeradd(tvp, uvp, vvp) \ do { \ (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ if ((vvp)->tv_usec >= 1000000) { \ (vvp)->tv_sec++; \ (vvp)->tv_usec -= 1000000; \ } \ } while (0) #define timersub(tvp, uvp, vvp) \ do { \ (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \ if ((vvp)->tv_usec < 0) { \ (vvp)->tv_sec--; \ (vvp)->tv_usec += 1000000; \ } \ } while (0) #endif /* !HAVE_TIMERADD */ /* Define if TAILQ_FOREACH is defined in */ #define HAVE_TAILQFOREACH 1 #ifndef HAVE_TAILQFOREACH #define TAILQ_FIRST(head) ((head)->tqh_first) #define TAILQ_END(head) NULL #define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) #define TAILQ_LAST(head, headname) \ (*(((struct headname *)((head)->tqh_last))->tqh_last)) #define TAILQ_FOREACH(var, head, field) \ for((var) = TAILQ_FIRST(head); \ (var) != TAILQ_END(head); \ (var) = TAILQ_NEXT(var, field)) #define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \ (elm)->field.tqe_prev = (listelm)->field.tqe_prev; \ (elm)->field.tqe_next = (listelm); \ *(listelm)->field.tqe_prev = (elm); \ (listelm)->field.tqe_prev = &(elm)->field.tqe_next; \ } while (0) #endif /* !HAVE_TAILQFOREACH */ /* Define if LIST_FIRST is defined in */ #define HAVE_LISTFIRST 1 #ifndef HAVE_LISTFIRST #define LIST_FIRST(head) ((head)->lh_first) #define LIST_END(head) NULL #define LIST_EMPTY(head) (LIST_FIRST(head) == LIST_END(head)) #define LIST_NEXT(elm, field) ((elm)->field.le_next) #endif /* !HAVE_LISTFIRST */ /* Prototypes for missing functions */ #ifndef HAVE_STRLCAT size_t strlcat(char *, const char *, size_t); #endif #ifndef HAVE_STRLCPY size_t strlcpy(char *, const char *, size_t); #endif #ifndef HAVE_STRSEP char *strsep(char **, const char *); #endif #ifndef HAVE_BASENAME char *basename(const char *); char *dirname(const char *); #endif #define timeout_add(ev, tv) event_add(ev, tv) #define timeout_set(ev, cb, arg) event_set(ev, -1, 0, cb, arg) #define timeout_del(ev) event_del(ev) #define timeout_pending(ev, tv) event_pending(ev, EV_TIMEOUT, tv) #define timeout_initialized(ev) ((ev)->ev_flags & EVLIST_INIT)