pkgsrc/ham/gnuradio-core/patches/patch-ad
joerg f09db0a9ca Add some unistd.h includes to get some prototypes, fix conditional
inclusion to include sys/time.h and unistd.h even if sys/select.h
exist, otherwise not all prototypes and types exist on DragonFly.
2005-12-01 19:02:45 +00:00

14 lines
396 B
Text

$NetBSD: patch-ad,v 1.1 2005/12/01 19:02:45 joerg Exp $
--- src/lib/io/gr_file_descriptor_source.cc.orig 2005-12-01 18:44:09.000000000 +0000
+++ src/lib/io/gr_file_descriptor_source.cc
@@ -32,6 +32,9 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <stdexcept>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
gr_file_descriptor_source::gr_file_descriptor_source (size_t itemsize,