summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2006-01-20 15:50:35 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2006-01-20 15:50:35 +0000
commitb9be408b7f795eb2c3e4ccf259686334357212c6 (patch)
tree97695a20bf0e56f23ba31bd3bc9f4d67f72e150f
parent- Update to 0.63 (diff)
Fix build on CURRENT by including limits.h for PATH_MAX
Remove ONLY_FOR_ARCHS ports builds on amd64 and sparc64 too.
Notes
Notes: svn path=/head/; revision=153994
-rw-r--r--net/xbms/Makefile1
-rw-r--r--net/xbms/files/patch-server20
2 files changed, 14 insertions, 7 deletions
diff --git a/net/xbms/Makefile b/net/xbms/Makefile
index f47a68499812..688b8328fa0b 100644
--- a/net/xbms/Makefile
+++ b/net/xbms/Makefile
@@ -14,7 +14,6 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Xbms, the unix streaming server for xbox mediaplayer
-ONLY_FOR_ARCHS= i386 alpha
USE_REINPLACE= yes
post-patch:
diff --git a/net/xbms/files/patch-server b/net/xbms/files/patch-server
index 746049083a0c..de7887e66127 100644
--- a/net/xbms/files/patch-server
+++ b/net/xbms/files/patch-server
@@ -1,6 +1,14 @@
--- server.c.orig Sun Feb 23 13:12:06 2003
-+++ server.c Sun Mar 7 12:30:02 2004
-@@ -55,7 +55,7 @@
++++ server.c Fri Jan 20 16:45:29 2006
+@@ -38,6 +38,7 @@
+ #include <netinet/in.h>
+ #include <netinet/tcp.h>
+ #include <sys/wait.h>
++#include <limits.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdarg.h>
+@@ -55,7 +56,7 @@
#define VERSION "0.30.6-dev"
@@ -9,7 +17,7 @@
#define PIDFILE "/var/run/xbms.pid"
#define C_SERVER_PORT 1400
#define MAX_MSG_LENGTH 4096
-@@ -465,9 +465,10 @@
+@@ -465,9 +466,10 @@
if (main_config->debug_lvl >= 1) d_log("OPEN\n");
/* Get the argument after comma */
@@ -23,7 +31,7 @@
fileName = (char *)malloc(strlen(ptr)+1);
// targetfileName = (char *)malloc(strlen(TARGET_PATH)+strlen(ptr)+2);
-@@ -508,7 +509,8 @@
+@@ -508,7 +510,8 @@
}
}
else d_log("Illegal string in filename: %s\n", fileName);
@@ -33,7 +41,7 @@
/***************************** READ A PART OF A FILE ****************/
if (strcmp(cmd,"READ") == 0)
-@@ -632,13 +634,14 @@
+@@ -632,13 +635,14 @@
/* mp3 playlists work from now on */
if (strcmp(cmd,"*CAT") == 0) {
if (main_config->debug_lvl >= 5)
@@ -52,7 +60,7 @@
/* We can't go back if the current path is empty ! */
if (main_config->current_path!=NULL && main_config->current_path[0] != 0) {
fileName = (char *)malloc(strlen(main_config->current_path)+1);
-@@ -654,7 +657,7 @@
+@@ -654,7 +658,7 @@
if (main_config->current_path!=NULL) free(main_config->current_path);
main_config->current_path=strdup(ptr);
}