From: Julian Andres Klode Date: Tue, 23 Aug 2016 10:53:10 +0000 (+0200) Subject: CMake: Define _WITH_GETLINE for FreeBSD X-Git-Tag: 1.3_rc3~10^2~35 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/bb9fdfe45b1c06f87de857b6ed225b8509003976 CMake: Define _WITH_GETLINE for FreeBSD Gbp-Dch: ignore --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a43abfb78..fcb200571 100644 --- a/CMakeLists.txt +++ b/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()