- Fix build.

This commit is contained in:
Sergey Matveychuk 2010-11-26 14:56:52 +00:00
parent 58607168ed
commit 524624e83b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265185
4 changed files with 27 additions and 13 deletions

View File

@ -16,8 +16,6 @@ COMMENT= Linux UPnP Internet Gateway Device
LIB_DEPENDS= upnp.4:${PORTSDIR}/devel/upnp
BROKEN= does not compile
USE_RC_SUBR= linuxigd
USE_GMAKE= yes
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}

View File

@ -0,0 +1,8 @@
--- gatedevice.c.orig 2010-11-26 17:54:07.000000000 +0300
+++ gatedevice.c 2010-11-26 17:55:02.000000000 +0300
@@ -1,3 +1,5 @@
+#include <stdio.h>
+#include <string.h>
#include <syslog.h>
#include <stdlib.h>
#include <upnp/ixml.h>

View File

@ -1,7 +1,9 @@
--- main.c.orig Wed Jul 26 04:45:13 2006
+++ main.c Sat Jun 16 19:49:25 2007
@@ -2,12 +2,14 @@
--- main.c.orig 2010-11-26 17:45:26.000000000 +0300
+++ main.c 2010-11-26 17:47:46.000000000 +0300
@@ -1,13 +1,16 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <syslog.h>
+#include <pthread.h>
@ -15,7 +17,7 @@
#include <net/if.h>
#include <upnp/upnp.h>
#include "globals.h"
@@ -22,7 +24,6 @@
@@ -22,7 +25,6 @@
int main (int argc, char** argv)
{
char descDocUrl[7+15+1+5+1+sizeof(g_vars.descDocName)+1]; // http://ipaddr:port/docName<null>
@ -23,7 +25,7 @@
sigset_t sigsToCatch;
int ret, signum, arg = 1, foreground = 0;
@@ -46,11 +47,17 @@
@@ -46,11 +48,17 @@
strncpy(g_vars.intInterfaceName, argv[arg++], IFNAMSIZ);
// Get the internal ip address to start the daemon on
@ -42,7 +44,7 @@
if (!foreground) {
struct rlimit resourceLimit = { 0, 0 };
pid_t pid, sid;
@@ -114,9 +121,9 @@
@@ -114,9 +122,9 @@
// Initialize UPnP SDK on the internal Interface
trace(3, "Initializing UPnP SDK ... ");

View File

@ -1,6 +1,12 @@
--- pmlist.c.orig Sun Oct 1 23:58:32 2006
+++ pmlist.c Sat Jun 16 19:55:22 2007
@@ -8,10 +8,6 @@
--- pmlist.c.orig 2010-11-26 17:45:26.000000000 +0300
+++ pmlist.c 2010-11-26 17:49:30.000000000 +0300
@@ -1,3 +1,5 @@
+#include <stdio.h>
+#include <string.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
@@ -8,10 +10,6 @@
#include "gatedevice.h"
#include "util.h"
@ -11,7 +17,7 @@
struct portMap* pmlist_NewNode(int enabled, long int duration, char *remoteHost,
char *externalPort, char *internalPort,
char *protocol, char *internalClient, char *desc)
@@ -233,55 +229,18 @@
@@ -233,55 +231,18 @@
{
if (enabled)
{
@ -77,7 +83,7 @@
}
return 1;
}
@@ -290,52 +249,18 @@
@@ -290,52 +251,18 @@
{
if (enabled)
{