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:
parent
78b1daf848
commit
fa575171c4
@ -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")
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user