diff options
| author | Timo Teräs <timo.teras@iki.fi> | 2014-09-24 08:08:33 +0000 |
|---|---|---|
| committer | Timo Teräs <timo.teras@iki.fi> | 2014-09-24 08:11:32 +0000 |
| commit | c2bd759ec687b7975232cfcb3d7916c540f9ed7f (patch) | |
| tree | ae139d7cf057602dcfb7f3190f215bca082f4f40 /testing/raspberrypi/fix-stdc99.patch | |
| parent | 647fe352d560e1ec51a75a1aee950759243e0fdb (diff) | |
| download | aports-c2bd759ec687b7975232cfcb3d7916c540f9ed7f.tar.bz2 aports-c2bd759ec687b7975232cfcb3d7916c540f9ed7f.tar.xz | |
testing/raspberrypi: upgrade to git snapshot 2014-09-19
Diffstat (limited to 'testing/raspberrypi/fix-stdc99.patch')
| -rw-r--r-- | testing/raspberrypi/fix-stdc99.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/raspberrypi/fix-stdc99.patch b/testing/raspberrypi/fix-stdc99.patch new file mode 100644 index 0000000000..4cdda94c76 --- /dev/null +++ b/testing/raspberrypi/fix-stdc99.patch @@ -0,0 +1,24 @@ +--- userland-ffcc4bd7c4875b71376c4240116e251652c9bec0.orig/containers/CMakeLists.txt ++++ userland-ffcc4bd7c4875b71376c4240116e251652c9bec0/containers/CMakeLists.txt +@@ -13,7 +13,7 @@ + + SET( GCC_COMPILER_FLAGS -Wall -g -O2 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wcast-qual -Wwrite-strings -Wundef ) + SET( GCC_COMPILER_FLAGS ${GCC_COMPILER_FLAGS} -Wextra )#-Wno-missing-field-initializers ) +-SET( GCC_COMPILER_FLAGS ${GCC_COMPILER_FLAGS} -D__STDC_VERSION__=199901L ) ++SET( GCC_COMPILER_FLAGS ${GCC_COMPILER_FLAGS} -std=c99 ) + SET( GCC_COMPILER_FLAGS ${GCC_COMPILER_FLAGS} -Wno-missing-field-initializers ) + SET( GCC_COMPILER_FLAGS ${GCC_COMPILER_FLAGS} -Wno-unused-value ) + +--- userland-ffcc4bd7c4875b71376c4240116e251652c9bec0.orig/interface/vcos/pthreads/vcos_platform.h ++++ userland-ffcc4bd7c4875b71376c4240116e251652c9bec0/interface/vcos/pthreads/vcos_platform.h +@@ -44,6 +44,10 @@ + extern "C" { + #endif + ++#ifndef _POSIX_C_SOURCE ++#define _POSIX_C_SOURCE 199309L ++#endif ++ + #include <pthread.h> + #include <semaphore.h> + #include <unistd.h> |
