diff options
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | include/events.h | 0 |
2 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 85e19d190..96a3e1d30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -275,6 +275,11 @@ if(NOT MSVC) if(HAVE_SOCKET_LIB) set(LDFLAGS "${LDFLAGS} -lsocket") endif(HAVE_SOCKET_LIB) + # Check if inet_addr is within the nsl library (if the library exists), and add it to the linker flags if needed + check_library_exists(nsl inet_addr "" HAVE_NSL_LIB) + if(HAVE_NSL_LIB) + set(LDFLAGS "${LDFLAGS} -lnsl") + endif(HAVE_NSL_LIB) endif(NOT WIN32) endif(NOT MSVC) diff --git a/include/events.h b/include/events.h deleted file mode 100644 index e69de29bb..000000000 --- a/include/events.h +++ /dev/null |