Permalink
Browse files

ham/gnuradio: Fix build on gcc 4.7.2

Add <unistd.h> to solve "close not declared in scope" error in gcc47
  • Loading branch information...
1 parent a108952 commit 1030d6922b993be4642a97f14601a28feddf1dfd marino committed Oct 9, 2012
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2012/03/10 21:47:30 markd Exp $
+$NetBSD: distinfo,v 1.8 2012/10/09 17:25:16 marino Exp $
SHA1 (gnuradio-3.3.0.tar.gz) = 41d5c177b173ce73404f5fe539b013c82600f73f
RMD160 (gnuradio-3.3.0.tar.gz) = ae83bd8a93deaf73d730e2af0d05c9ffc4c98520
@@ -14,4 +14,6 @@ SHA1 (patch-aj) = 046fb46567fcbef58143ac3eeb2d0f1fd905618e
SHA1 (patch-ak) = c6d2d9289600a89cd425d1bab671b080888d9c04
SHA1 (patch-config_gr__lib64.m4) = 2263778dea1b8918033c175735f3134a6da80dc5
SHA1 (patch-gnuradio-core_src_lib_general_gr__math.cc) = 81161e9576c3ec8259a20663eb991578f0ac40c3
+SHA1 (patch-gnuradio-core_src_lib_io_gr__file__descriptor__sink.cc) = 4ac9818b722b5fc9175c4c19fb8a8126ddf48ed2
+SHA1 (patch-gnuradio-core_src_lib_io_gr__file__descriptor__source.cc) = 54f4194ef35e206ef05a6dd35066037529250a57
SHA1 (patch-usrp_host_swig_usrp_prims.i) = 2ff2f695a2ba8cb4237298be96833225f37cfec8
@@ -0,0 +1,14 @@
+$NetBSD: patch-gnuradio-core_src_lib_io_gr__file__descriptor__sink.cc,v 1.1 2012/10/09 17:25:16 marino Exp $
+
+Fix "close not declared in this scope" error on gcc 4.7
+
+--- gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc.orig 2010-06-02 00:57:52.000000000 +0000
++++ gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc
+@@ -33,6 +33,7 @@
+ #include <fcntl.h>
+ #include <stdexcept>
+ #include <stdio.h>
++#include <unistd.h>
+
+
+ gr_file_descriptor_sink::gr_file_descriptor_sink (size_t itemsize, int fd)
@@ -0,0 +1,14 @@
+$NetBSD: patch-gnuradio-core_src_lib_io_gr__file__descriptor__source.cc,v 1.1 2012/10/09 17:25:16 marino Exp $
+
+Fix "close not declared in this scope" error on gcc 4.7
+
+--- gnuradio-core/src/lib/io/gr_file_descriptor_source.cc.orig 2010-06-02 00:57:52.000000000 +0000
++++ gnuradio-core/src/lib/io/gr_file_descriptor_source.cc
+@@ -34,6 +34,7 @@
+ #include <stdexcept>
+ #include <stdio.h>
+ #include <string.h>
++#include <unistd.h>
+
+
+ gr_file_descriptor_source::gr_file_descriptor_source (size_t itemsize,

0 comments on commit 1030d69

Please sign in to comment.