summaryrefslogtreecommitdiff
path: root/meta-pkgs/gnuradio/patches/patch-aa
blob: 020356e5f737c8893c487cd12a288e1ad97c432e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-aa,v 1.2 2012/01/12 15:47:45 hans Exp $

--- gnuradio-core/src/lib/runtime/gr_dispatcher.cc.orig	2008-05-09 18:35:10.000000000 +1200
+++ gnuradio-core/src/lib/runtime/gr_dispatcher.cc
@@ -30,18 +30,17 @@
 #include <stdio.h>
 
 #ifdef HAVE_SELECT
+#  ifdef HAVE_SYS_TIME_H
+#    include <sys/time.h>
+#  endif
 #  ifdef HAVE_SYS_SELECT_H
 #    include <sys/select.h>
-#  else
-#    ifdef HAVE_SYS_TIME_H
-#      include <sys/time.h>
-#    endif
-#    ifdef HAVE_SYS_TYPES_H
-#      include <sys/types.h>
-#    endif
-#    ifdef HAVE_UNISTD_H
-#      include <unistd.h>
-#    endif
+#  endif
+#  ifdef HAVE_SYS_TYPES_H
+#    include <sys/types.h>
+#  endif
+#  ifdef HAVE_UNISTD_H
+#    include <unistd.h>
 #  endif
 #endif
 
@@ -44,6 +44,9 @@
 #  endif
 #endif
 
+#ifdef __sun
+#include <string.h>		/* for memset(), used by FD_ZERO */
+#endif
 
 static gr_dispatcher_sptr s_singleton;