diff -r 76ceb617f880 -r 680c3f7768b0 stun/stun.patch --- a/stun/stun.patch Fri Apr 13 17:49:04 2012 +0200 +++ b/stun/stun.patch Fri Apr 13 18:48:23 2012 +0200 @@ -1,7 +1,16 @@ Index: server.cxx +diff -Nau server.cxx.orig server.cxx --- server.cxx.orig 2005-08-13 22:19:29 +0200 +++ server.cxx 2005-11-16 10:33:51 +0100 -@@ -23,7 +23,7 @@ +@@ -2,6 +2,7 @@ + #include + #include + #include ++#include + + #ifndef WIN32 + #include +@@ -23,7 +24,7 @@ usage() { cerr << "Usage: " << endl @@ -10,7 +19,7 @@ << " " << endl << " If the IP addresses of your NIC are 10.0.1.150 and 10.0.1.151, run this program with" << endl << " ./server -v -h 10.0.1.150 -a 10.0.1.151" << endl -@@ -32,7 +32,7 @@ +@@ -32,7 +33,7 @@ << " -a sets the secondary IP" << endl << " -p sets the primary port and defaults to 3478" << endl << " -o sets the secondary port and defaults to 3479" << endl @@ -19,7 +28,7 @@ << " -m sets up a STERN server starting at port m" << endl << " -v runs in verbose mode" << endl // in makefile too -@@ -55,6 +55,7 @@ +@@ -55,6 +56,7 @@ StunAddress4 altAddr; bool verbose=false; bool background=false; @@ -27,7 +36,7 @@ myAddr.addr = 0; altAddr.addr = 0; -@@ -135,6 +136,16 @@ +@@ -135,6 +137,16 @@ } myMediaPort = UInt16(strtol( argv[arg], NULL, 10)); } @@ -44,7 +53,7 @@ else { usage(); -@@ -213,6 +224,19 @@ +@@ -213,6 +225,19 @@ if (pid == 0) //child or not using background { @@ -65,14 +74,16 @@ bool ok = stunInitServer(info, myAddr, altAddr, myMediaPort, verbose); Index: stun.cxx -diff -Nau stund.orig/stun.cxx stund/stun.cxx +diff -Nau stun.cxx.orig stun.cxx --- stun.cxx.orig 2005-08-14 02:39:03.000000000 +0200 +++ stun.cxx 2009-01-09 00:23:08.069498590 +0100 -@@ -16,6 +16,7 @@ +@@ -16,6 +16,9 @@ #include #include #include ++#if defined (__SVR4) && defined (__sun) +#include ++#endif #include #include #include