]> git.saurik.com Git - apt.git/blobdiff - CMakeLists.txt
CMake: Define _WITH_GETLINE for FreeBSD
[apt.git] / CMakeLists.txt
index a43abfb781ecfed7ef5974760fafc6efcdf6f5cc..fcb2005713cf39decd9a33aa95801e800bbef3d5 100644 (file)
@@ -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()