[38045] trunk/dports/net/cryptcat

jmr at macports.org jmr at macports.org
Fri Jul 4 06:56:23 PDT 2008


Revision: 38045
          http://trac.macosforge.org/projects/macports/changeset/38045
Author:   jmr at macports.org
Date:     2008-07-04 06:56:23 -0700 (Fri, 04 Jul 2008)
Log Message:
-----------
cryptcat: fix building on Panther

Modified Paths:
--------------
    trunk/dports/net/cryptcat/Portfile

Added Paths:
-----------
    trunk/dports/net/cryptcat/files/patch-netcat.c.diff

Modified: trunk/dports/net/cryptcat/Portfile
===================================================================
--- trunk/dports/net/cryptcat/Portfile	2008-07-04 13:34:50 UTC (rev 38044)
+++ trunk/dports/net/cryptcat/Portfile	2008-07-04 13:56:23 UTC (rev 38045)
@@ -16,7 +16,7 @@
 distname		cryptcat-unix-${version}
 extract.suffix	.tar
 checksums		md5 fc4afff350f3dd5e4fe51b0dd01a8e21
-patchfiles		patch-Makefile.diff
+patchfiles		patch-Makefile.diff patch-netcat.c.diff
 
 worksrcdir		unix
 

Added: trunk/dports/net/cryptcat/files/patch-netcat.c.diff
===================================================================
--- trunk/dports/net/cryptcat/files/patch-netcat.c.diff	                        (rev 0)
+++ trunk/dports/net/cryptcat/files/patch-netcat.c.diff	2008-07-04 13:56:23 UTC (rev 38045)
@@ -0,0 +1,23 @@
+--- netcat.c.orig	2005-10-19 03:42:05.000000000 +1000
++++ netcat.c	2008-07-04 23:30:26.000000000 +1000
+@@ -48,9 +48,6 @@
+ #else
+ #include <malloc.h>
+ #endif
+-#ifdef HAVE_SELECT_H		/* random SV variants need this */
+-#include <sys/select.h>
+-#endif
+ 
+ /* have to do this *before* including types.h. xxx: Linux still has it wrong */
+ #ifdef FD_SETSIZE		/* should be in types.h, butcha never know. */
+@@ -59,6 +56,10 @@
+ #define FD_SETSIZE 16		/* <-- this'll give us a long anyways, wtf */
+ #include <sys/types.h>		/* *now* do it.  Sigh, this is broken */
+ 
++#ifdef HAVE_SELECT_H		/* random SV variants need this */
++#include <sys/select.h>
++#endif
++
+ #ifdef HAVE_RANDOM		/* aficionados of ?rand48() should realize */
+ #define SRAND srandom		/* that this doesn't need *strong* random */
+ #define RAND random		/* numbers just to mix up port numbers!! */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080704/2c792f8f/attachment.html 


More information about the macports-changes mailing list