rtl_433: Update to 18.12

Added a patch to fix compilation under uClibc-ng.

Reorganized Makefile for consistency between packages.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-05-02 22:33:26 -07:00
parent ae714f9afa
commit 43d26bbf83
2 changed files with 17 additions and 6 deletions
@@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,7 +50,7 @@ if (("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" MATCHES
ADD_DEFINITIONS(-std=c99)
ADD_DEFINITIONS(-pedantic)
# for strdup, setenv
- ADD_DEFINITIONS(-D_POSIX_C_SOURCE=200809)
+ ADD_DEFINITIONS(-D_GNU_SOURCE)
#http://gcc.gnu.org/wiki/Visibility
add_definitions(-fvisibility=hidden)