[MacPorts] #42531: snort: update to 2.9.6.0
MacPorts
noreply at macports.org
Fri Apr 25 05:57:12 PDT 2014
#42531: snort: update to 2.9.6.0
--------------------------+---------------------
Reporter: jul_bsd@… | Owner: markd@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: snort |
--------------------------+---------------------
Changes (by cal@…):
* cc: cal@… (added)
Comment:
Please don't blacklist clang for this problem, because it is very simple
to fix with the following patch:
{{{
#!patch
--- src/strlcatu.h.orig 2014-04-25 14:52:18.365704085 +0200
+++ src/strlcatu.h 2014-04-25 14:54:45.169341645 +0200
@@ -21,6 +21,15 @@
#ifndef __STRLCAT_H__
#define __STRLCAT_H__
+#ifndef strlcat
+/*
+ * On OS X (and probably some other systems aswell), strlcat might be
+ * implemented as a macro. If this macro is defined while we're including
this
+ * header, strlcat 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 strlcat(char *, const char *, size_t);
+#endif /* !defined(strlcat) */
#endif /* __STRLCAT_H__ */
--- src/strlcpyu.h.orig 2014-04-25 14:52:24.953867334 +0200
+++ src/strlcpyu.h 2014-04-25 14:54:35.197094556 +0200
@@ -21,6 +21,15 @@
#ifndef __STRLCPY_H__
#define __STRLCPY_H__
+#ifndef strlcpy
+/*
+ * On OS X (and probably some other systems aswell), strlcat might be
+ * implemented as a macro. If this macro is defined while we're including
this
+ * header, strlcat 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 *, const char *, size_t);
+#endif /* !defined(strlcpy) */
#endif /* __STRLCPY_H__ */
}}}
--
Ticket URL: <https://trac.macports.org/ticket/42531#comment:14>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list