From: Antonio Ospite Date: Tue, 17 Nov 2015 17:42:39 +0000 (+0100) Subject: am7xxx: bump _POSIX_C_SOURCE to 200112L for lroundf() X-Git-Tag: v0.1.7~46 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/80f9d332324848b878fca92f7097aa8fb71ec423?hp=0fe6736d63a0f869ba3abe509225ffdb044de19d am7xxx: bump _POSIX_C_SOURCE to 200112L for lroundf() The library code uses lroundf() from math.h but some compilers may warn about an implicit definition of it, so make sure it it actually available by following the requirements from the LROUND(3) man page. --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f743b1a..7e914f7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ add_definitions("-D_BSD_SOURCE") # for htole32() -add_definitions("-D_POSIX_C_SOURCE=199309L") # for nanosleep() +add_definitions("-D_POSIX_C_SOURCE=200112L") # for nanosleep() and lroundf() # Find packages needed to build library find_package(libusb-1.0 REQUIRED)