diff options
author | Zonr Chang <zonr.net@gmail.com> | 2016-08-24 16:19:01 +0800 |
---|---|---|
committer | Azat Khuzhin <a3at.mail@gmail.com> | 2016-10-26 18:48:41 +0300 |
commit | dc624adf42bc95d22a5137db466258ab1dad7e48 (patch) | |
tree | da199c66b99808d1918f27a0b7241275e5820bc9 /event-config.h.cmake | |
parent | e9837124563d6d4bb871d0620e9b02550f796c43 (diff) | |
download | libevent-dc624adf42bc95d22a5137db466258ab1dad7e48.tar.gz |
cmake: cleanup
- Remove a redundant check on netdb.h (EVENT__HAVE_NETDB_H).
- Properly setup EVENT__SIZEOF_SSIZE_T for the case where "ssize_t" is
not "int".
- Remove unused EVENT__HAVE_PTHREAD.
- Set EVENT__HAVE_LIBZ instead of EVENT__HAVE_ZLIB (and remove the
latter).
Closes: #391 (cherry-picked from PR)
Diffstat (limited to 'event-config.h.cmake')
-rw-r--r-- | event-config.h.cmake | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/event-config.h.cmake b/event-config.h.cmake index 6a322a69..c1355be9 100644 --- a/event-config.h.cmake +++ b/event-config.h.cmake @@ -187,9 +187,6 @@ /* Define to 1 if you have the `usleep' function. */ #cmakedefine EVENT__HAVE_USLEEP -/* Define to 1 if you have the <netdb.h> header file. */ -#cmakedefine EVENT__HAVE_NETDB_H - /* Define to 1 if you have the <netinet/in6.h> header file. */ #cmakedefine EVENT__HAVE_NETINET_IN6_H @@ -202,9 +199,6 @@ /* Define if the system has openssl */ #cmakedefine EVENT__HAVE_OPENSSL -/* Defines if the system has zlib */ -#cmakedefine EVENT__HAVE_ZLIB - /* Define to 1 if you have the `pipe' function. */ #cmakedefine EVENT__HAVE_PIPE @@ -223,9 +217,6 @@ /* Define to 1 if you have the <port.h> header file. */ #cmakedefine EVENT__HAVE_PORT_H -/* Define if you have POSIX threads libraries and header files. */ -#cmakedefine EVENT__HAVE_PTHREAD - /* Define if we have pthreads on this system */ #cmakedefine EVENT__HAVE_PTHREADS @@ -486,9 +477,9 @@ #endif -#ifdef __THESE_ARE_NOT_CONFIG_H_THINGS_THEY_ARE_DASH_D_THINGS__ +#ifdef __THESE_ARE_NOT_CONFIG_H_THINGS_THEY_ARE_DASH_D_THINGS__ /* Number of bits in a file offset, on hosts where this is settable. */ -/* Ellzey is not satisfied */ +/* Ellzey is not satisfied */ #define EVENT___FILE_OFFSET_BITS @EVENT___FILE_OFFSET_BITS@ /* Define for large files, on AIX-style hosts. */ |