summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2013-11-16 18:46:03 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-11-16 13:58:10 -0600
commit649685259c5bf0ab4b43aa2233a4397f0636b9af (patch)
tree8a6e85a503593e274c1f8b50bf9c35c5cab54e56
parent7ae7447671c10e20d71b34bec5cbb553d70f0d9a (diff)
downloadslackbuilds-649685259c5bf0ab4b43aa2233a4397f0636b9af.tar.gz
network/udpcast: Add patch for missing include.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
-rw-r--r--network/udpcast/udpcast.SlackBuild7
-rw-r--r--network/udpcast/udpcast_include.patch11
2 files changed, 16 insertions, 2 deletions
diff --git a/network/udpcast/udpcast.SlackBuild b/network/udpcast/udpcast.SlackBuild
index 38cae650c5..7ee6770223 100644
--- a/network/udpcast/udpcast.SlackBuild
+++ b/network/udpcast/udpcast.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for udpcast
-# Copyright 2007-2012 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2007-2013 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=udpcast
VERSION=20120424
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -65,6 +65,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# Fix missing include
+patch -p1 -i $CWD/udpcast_include.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
diff --git a/network/udpcast/udpcast_include.patch b/network/udpcast/udpcast_include.patch
new file mode 100644
index 0000000000..b911950408
--- /dev/null
+++ b/network/udpcast/udpcast_include.patch
@@ -0,0 +1,11 @@
+--- a/console.h 2013-02-21 16:12:39.418426558 +0100
++++ b/console.h 2013-02-21 16:12:26.998596846 +0100
+@@ -6,6 +6,8 @@
+ #include <winbase.h>
+ #endif /* __MINGW32__ */
+
++#include <sys/select.h>
++
+ #define prepareConsole udpc_prepareConsole
+ #define getConsoleFd udpc_getConsoleFd
+ #define restoreConsole udpc_restoreConsole