summaryrefslogtreecommitdiff
path: root/package/gnuradio
diff options
context:
space:
mode:
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>2015-08-29 17:10:06 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-29 23:20:52 +0200
commitaca921d2affb2e59db828da5ef7c09356d022d89 (patch)
tree5f373ccc7cb48bb1753e28446cfb7660da706113 /package/gnuradio
parentec9fc5a2c0acef4c462375b98ffbfe9995442d38 (diff)
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 <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/gnuradio')
-rw-r--r--package/gnuradio/0002-types_t-is-need-for-mode_t.patch19
1 files changed, 19 insertions, 0 deletions
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 000000000..7730d2dfc
--- /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 <gwenhael.goavec-merou@trabucayre.com>
+---
+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 <sys/types.h>
+ #endif
+
+ #include <gnuradio/api.h>