]> granicus.if.org Git - libevent/commitdiff
cmake: check for 'struct linger' existence
authorAzat Khuzhin <a3at.mail@gmail.com>
Sun, 29 Jan 2017 20:05:18 +0000 (23:05 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 29 Jan 2017 20:06:34 +0000 (23:06 +0300)
CMakeLists.txt
event-config.h.cmake

index ae1b4e47e97a43681a93ba728626a04ed1e20a2c..25327a359b946b6b47e689af235df16071ae300b 100644 (file)
@@ -578,6 +578,8 @@ if(EVENT__HAVE_STRUCT_SOCKADDR_STORAGE)
             __ss_family "${SOCKADDR_HEADERS}" EVENT__HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY)
 endif()
 
+CHECK_TYPE_SIZE("struct linger" EVENT__HAVE_STRUCT_LINGER)
+
 # Group the source files.
 set(HDR_PRIVATE
     bufferevent-internal.h
index c1355be9148578b23d0d8db030594843f28d01fb..faa159b70397cf76e9d9bfe3f6615839c64ac81c 100644 (file)
 /* Define to 1 if `__ss_family' is a member of `struct sockaddr_storage'. */
 #cmakedefine EVENT__HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY
 
+/* Define to 1 if the system has the type `struct linger'. */
+#cmakedefine EVENT__HAVE_STRUCT_LINGER
+
 /* Define to 1 if you have the `sysctl' function. */
 #cmakedefine EVENT__HAVE_SYSCTL