From b3cdde78b1f0a0d532dcb5c15f07460618fc9a2d Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 12 Jul 2015 17:50:59 +0200 Subject: [PATCH] Add define _GNU_SOURCE for getline() --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac5d167..a8c3dcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,8 @@ if( NOT IMLIB_BUILD_WITH_X ) message( FATAL_ERROR "Imlib is not built with X support" ) endif( NOT IMLIB_BUILD_WITH_X ) +add_definitions( -D_GNU_SOURCE ) + include_directories( ${PROJECT_BINARY_DIR} src src/battery