src/CMakeLists.txt: fix a compilation warning about _BSD_SOURCE deprecation
authorAntonio Ospite <ao2@ao2.it>
Wed, 29 Jun 2016 17:32:29 +0000 (19:32 +0200)
committerAntonio Ospite <ao2@ao2.it>
Wed, 29 Jun 2016 17:32:29 +0000 (19:32 +0200)
Fix this warning from recent compilers:
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

src/CMakeLists.txt

index 7e914f7..15c1f6f 100644 (file)
@@ -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