1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-27 00:58:36 +00:00

Remove -D_GNU_SOURCE and do not use GNU extensions

we hope to compile on non-GNU systems as well
This commit is contained in:
Pavel Labath 2012-07-01 15:05:27 +02:00
parent 78b1daf848
commit fa575171c4
2 changed files with 2 additions and 4 deletions

View File

@ -64,9 +64,6 @@ find_package(Threads)
set(conky_libs ${CMAKE_THREAD_LIBS_INIT})
set(conky_includes ${CMAKE_BINARY_DIR})
add_definitions(-D_GNU_SOURCE) # Standard definitions
set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_GNU_SOURCE")
# Do version stuff
set(VERSION_MAJOR "2")
set(VERSION_MINOR "0")

View File

@ -63,7 +63,8 @@ namespace {
std::string strerror_r(int errnum)
{
char buf[100];
return strerror_r(errnum, buf, sizeof buf);
strerror_r(errnum, buf, sizeof buf);
return buf;
}
std::pair<int, int> pipe2(int flags)