Explorar o código

CMake: Define _WITH_GETLINE for FreeBSD

Gbp-Dch: ignore
Julian Andres Klode %!s(int64=10) %!d(string=hai) anos
pai
achega
bb9fdfe45b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      CMakeLists.txt

+ 3 - 0
CMakeLists.txt

@@ -111,6 +111,9 @@ check_function_exists(ptsname_r HAVE_PTSNAME_R)
 check_function_exists(timegm HAVE_TIMEGM)
 test_big_endian(WORDS_BIGENDIAN)
 
+# FreeBSD
+add_definitions(-D_WITH_GETLINE=1)
+
 if (CMAKE_USE_PTHREADS_INIT)
   set(HAVE_PTHREAD 1)
 endif()