aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-07-25 17:50:34 +0800
committersobomax <sobomax@FreeBSD.org>2001-07-25 17:50:34 +0800
commit034c784bf86d9ac42199311e5cb716618837bbe3 (patch)
tree33b5ab5e06b9278c2ee4ebf169b6dcd4dc668523 /net
parent927ccad1cf79fe6a480bf14540e31842aa90c08e (diff)
downloadfreebsd-ports-gnome-034c784bf86d9ac42199311e5cb716618837bbe3.tar.gz
freebsd-ports-gnome-034c784bf86d9ac42199311e5cb716618837bbe3.tar.zst
freebsd-ports-gnome-034c784bf86d9ac42199311e5cb716618837bbe3.zip
Update to 1.2.2.
Diffstat (limited to 'net')
-rw-r--r--net/sdl_net/Makefile2
-rw-r--r--net/sdl_net/distinfo2
-rw-r--r--net/sdl_net/files/patch-SDLnetselect.c29
-rw-r--r--net/sdl_net/pkg-descr2
4 files changed, 32 insertions, 3 deletions
diff --git a/net/sdl_net/Makefile b/net/sdl_net/Makefile
index ba9da1cd80a8..f78c80d68e13 100644
--- a/net/sdl_net/Makefile
+++ b/net/sdl_net/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= sdl_net
-PORTVERSION= 1.2.0
+PORTVERSION= 1.2.2
CATEGORIES= net
MASTER_SITES= http://www.libsdl.org/projects/SDL_net/release/
DISTNAME= SDL_net-${PORTVERSION}
diff --git a/net/sdl_net/distinfo b/net/sdl_net/distinfo
index f408276e55ce..7a4a4d7fc31a 100644
--- a/net/sdl_net/distinfo
+++ b/net/sdl_net/distinfo
@@ -1 +1 @@
-MD5 (SDL_net-1.2.0.tar.gz) = c8d4452f58c457b6f3dd6ca04bf3f071
+MD5 (SDL_net-1.2.2.tar.gz) = 02af20a5c01c4f725cb735be1b84e657
diff --git a/net/sdl_net/files/patch-SDLnetselect.c b/net/sdl_net/files/patch-SDLnetselect.c
new file mode 100644
index 000000000000..b29640787a83
--- /dev/null
+++ b/net/sdl_net/files/patch-SDLnetselect.c
@@ -0,0 +1,29 @@
+
+$FreeBSD$
+
+--- SDLnetselect.c 2001/07/25 09:44:01 1.1
++++ SDLnetselect.c 2001/07/25 09:45:57
+@@ -175,6 +175,7 @@
+ SOCKET maxfd;
+ int retval;
+ struct timeval tv;
++ struct timeval *tmp;
+ fd_set mask;
+
+ /* Find the largest file descriptor */
+@@ -199,8 +200,14 @@
+ tv.tv_sec = timeout/1000;
+ tv.tv_usec = (timeout%1000)*1000;
+
++ /* XXX: Workaround for a bug in FreeBSD - w/o it in some cases select() chews 100% CPU */
++ if (timeout == ~0)
++ tmp = NULL;
++ else
++ tmp = &tv;
++
+ /* Look! */
+- retval = select(maxfd+1, &mask, NULL, NULL, &tv);
++ retval = select(maxfd+1, &mask, NULL, NULL, tmp);
+ } while ( errno == EINTR );
+
+ /* Mark all file descriptors ready that have data available */
diff --git a/net/sdl_net/pkg-descr b/net/sdl_net/pkg-descr
index 1118a2308b6e..23b662c64f0f 100644
--- a/net/sdl_net/pkg-descr
+++ b/net/sdl_net/pkg-descr
@@ -2,4 +2,4 @@ This is a small sample cross-platform networking library, with a sample chat
client and server application. The chat client uses the GUIlib GUI framework
library.
-WWW: http://www.devolution.com/~slouken/SDL/projects/SDL_net/
+WWW: http://www.libsdl.org/projects/SDL_net/