projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d57e411
)
src/CMakeLists.txt: fix a compilation warning about _BSD_SOURCE deprecation
author
Antonio Ospite <ao2@ao2.it>
Wed, 29 Jun 2016 17:32:29 +0000
(19:32 +0200)
committer
Antonio 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
patch
|
blob
|
history
diff --git
a/src/CMakeLists.txt
b/src/CMakeLists.txt
index
7e914f7
..
15c1f6f
100644
(file)
--- 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