File udpcast-20120424-fd_set.patch of Package udpcast

From: Andreas Stieger <andreas.stieger@gmx.de>
Subject: [PATCH] make fd_set known in console.c
Date: Date: Sat, 23 Feb 2013 21:29:02 +0000
Upstream: never

Building on openSUSE 12.3 and later would fail:

In file included from console.c:7:0:
console.h:25:9: error: unknown type name 'fd_set'

Include sys/types.h to make this type known.

---
 console.h |    3 +++
 1 file changed, 3 insertions(+)

Index: udpcast-20120424/console.h
===================================================================
--- udpcast-20120424.orig/console.h	2005-12-22 22:59:18.000000000 +0000
+++ udpcast-20120424/console.h	2013-02-23 21:30:02.000000000 +0000
@@ -6,6 +6,9 @@
 #include <winbase.h>
 #endif /* __MINGW32__ */
 
+// for fd_set
+#include <sys/types.h>
+
 #define prepareConsole udpc_prepareConsole
 #define getConsoleFd udpc_getConsoleFd
 #define restoreConsole udpc_restoreConsole
openSUSE Build Service is sponsored by