From aca921d2affb2e59db828da5ef7c09356d022d89 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sat, 29 Aug 2015 17:10:06 +0200 Subject: [PATCH] gnuradio: sys/types.h is needed for mode_t fix : http://autobuild.buildroot.net/results/8e3/8e3afd5f22312f0660f631fdb82bbb64eda913fb/build-end.log error: 'mode_t' has not been declared Signed-off-by: Gwenhael Goavec-Merou Signed-off-by: Thomas Petazzoni --- .../0002-types_t-is-need-for-mode_t.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 package/gnuradio/0002-types_t-is-need-for-mode_t.patch diff --git a/package/gnuradio/0002-types_t-is-need-for-mode_t.patch b/package/gnuradio/0002-types_t-is-need-for-mode_t.patch new file mode 100644 index 0000000000..7730d2dfc6 --- /dev/null +++ b/package/gnuradio/0002-types_t-is-need-for-mode_t.patch @@ -0,0 +1,19 @@ +To avoid : +error: 'mode_t' has not been declared +sys/types.h must be included + +Signed-off-by: Gwenhael Goavec-Merou +--- +Index: gnuradio-3.7.5/gnuradio-runtime/include/gnuradio/logger.h.in +=================================================================== +--- gnuradio-3.7.5.orig/gnuradio-runtime/include/gnuradio/logger.h.in ++++ gnuradio-3.7.5/gnuradio-runtime/include/gnuradio/logger.h.in +@@ -44,6 +44,8 @@ + + #ifdef _MSC_VER + typedef unsigned short mode_t; ++#else ++#include + #endif + + #include -- 2.30.2