From: Antonio Ospite Date: Wed, 29 Jun 2016 17:32:29 +0000 (+0200) Subject: src/CMakeLists.txt: fix a compilation warning about _BSD_SOURCE deprecation X-Git-Tag: v0.1.7~39 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/2e84fd6b3f5aca431b34b4b8eda536f1cedec930 src/CMakeLists.txt: fix a compilation warning about _BSD_SOURCE deprecation Fix this warning from recent compilers: # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7e914f7..15c1f6f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,4 @@ -add_definitions("-D_BSD_SOURCE") # for htole32() +add_definitions("-D_DEFAULT_SOURCE") # for htole32() add_definitions("-D_POSIX_C_SOURCE=200112L") # for nanosleep() and lroundf() # Find packages needed to build library