[32412] trunk/dports/net/dhcp
blair at macports.org
blair at macports.org
Sat Dec 29 10:49:57 PST 2007
Revision: 32412
http://trac.macosforge.org/projects/macports/changeset/32412
Author: blair at macports.org
Date: 2007-12-29 10:49:56 -0800 (Sat, 29 Dec 2007)
Log Message:
-----------
Fix #13271 by introducing function declarations for all the
trace_mr_*() functions.
Modified Paths:
--------------
trunk/dports/net/dhcp/Portfile
Added Paths:
-----------
trunk/dports/net/dhcp/files/patch-minires-res_send.c
Modified: trunk/dports/net/dhcp/Portfile
===================================================================
--- trunk/dports/net/dhcp/Portfile 2007-12-29 18:37:42 UTC (rev 32411)
+++ trunk/dports/net/dhcp/Portfile 2007-12-29 18:49:56 UTC (rev 32412)
@@ -30,6 +30,8 @@
http://ftp.isc.org/isc/dhcp/dhcp-3.1-history/
checksums md5 27d179a3c3fbef576566b456a1168246
+patchfiles patch-minires-res_send.c
+
post-patch {
file copy -force ${filespath}/site.conf ${worksrcpath}
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/site.conf
Added: trunk/dports/net/dhcp/files/patch-minires-res_send.c
===================================================================
--- trunk/dports/net/dhcp/files/patch-minires-res_send.c (rev 0)
+++ trunk/dports/net/dhcp/files/patch-minires-res_send.c 2007-12-29 18:49:56 UTC (rev 32412)
@@ -0,0 +1,25 @@
+diff -ru ../dhcp-3.1.0.orig/minires/res_send.c ./minires/res_send.c
+--- ../dhcp-3.1.0.orig/minires/res_send.c 2005-03-17 12:15:19.000000000 -0800
++++ ./minires/res_send.c 2007-12-11 22:02:19.000000000 -0800
+@@ -80,6 +80,21 @@
+ #endif /* LIBC_SCCS and not lint */
+
+ /* Rename the I/O functions in case we're tracing. */
++#include <omapip/omapip_p.h>
++
++ssize_t trace_mr_send (int, void *, size_t, int);
++ssize_t trace_mr_recvfrom (int s, void *, size_t, int,
++ struct sockaddr *, SOCKLEN_T *);
++ssize_t trace_mr_read (int, void *, size_t);
++int trace_mr_connect (int s, struct sockaddr *, SOCKLEN_T);
++int trace_mr_socket (int, int, int);
++int trace_mr_bind (int, struct sockaddr *, SOCKLEN_T);
++int trace_mr_close (int);
++time_t trace_mr_time (time_t *);
++int trace_mr_select (int, fd_set *, fd_set *, fd_set *, struct timeval *);
++unsigned int trace_mr_res_randomid (unsigned int);
++
++
+ #define send trace_mr_send
+ #define recvfrom trace_mr_recvfrom
+ #define read trace_mr_read
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071229/7cc5edaf/attachment.html
More information about the macports-changes
mailing list