[120993] trunk/dports/net/hping3/files/patch-gethostname.c.diff
mf2k at macports.org
mf2k at macports.org
Fri Jun 13 12:36:01 PDT 2014
Revision: 120993
https://trac.macports.org/changeset/120993
Author: mf2k at macports.org
Date: 2014-06-13 12:36:01 -0700 (Fri, 13 Jun 2014)
Log Message:
-----------
hping3: Add forgotten patchfile.
Added Paths:
-----------
trunk/dports/net/hping3/files/patch-gethostname.c.diff
Added: trunk/dports/net/hping3/files/patch-gethostname.c.diff
===================================================================
--- trunk/dports/net/hping3/files/patch-gethostname.c.diff (rev 0)
+++ trunk/dports/net/hping3/files/patch-gethostname.c.diff 2014-06-13 19:36:01 UTC (rev 120993)
@@ -0,0 +1,19 @@
+--- gethostname.c.orig 2014-05-29 13:20:06.000000000 -0400
++++ gethostname.c 2014-05-29 13:19:42.000000000 -0400
+@@ -18,7 +18,16 @@
+ #include <arpa/inet.h>
+ #include <string.h>
+
++#ifndef strlcpy
++/*
++ * On OS X (and probably some other systems aswell), strlcpy might be
++ * implemented as a macro. If this macro is defined while we're including this
++ * header, strlcpy is already declared and trying to re-declare it with the
++ * following line *will* fail, because the macro will expand to something
++ * that's not a valid function name.
++ */
+ size_t strlcpy(char *dst, const char *src, size_t siz);
++#endif /* !defined(strlcpy) */
+
+ char *get_hostname(char* addr)
+ {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140613/4ba5c475/attachment-0001.html>
More information about the macports-changes
mailing list