INN commit: trunk/include (clibrary.h)

INN Commit rra at isc.org
Mon Dec 1 21:11:30 UTC 2014


    Date: Monday, December 1, 2014 @ 13:11:29
  Author: iulius
Revision: 9755

BSD/OS reportedly has implementations of both but doesn't prototype
them in system headers, so switch the prototyping to be conditional
on whether they're declared rather than whether they're available.

Modified:
  trunk/include/clibrary.h

------------+
 clibrary.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: clibrary.h
===================================================================
--- clibrary.h	2014-12-01 21:08:28 UTC (rev 9754)
+++ clibrary.h	2014-12-01 21:11:29 UTC (rev 9755)
@@ -123,10 +123,10 @@
 extern int              snprintf(char *, size_t, const char *, ...)
     __attribute__((__format__(printf, 3, 4)));
 #endif
-#if !HAVE_STRLCAT || !HAVE_DECL_STRLCAT
+#if !HAVE_DECL_STRLCAT
 extern size_t           strlcat(char *, const char *, size_t);
 #endif
-#if !HAVE_STRLCPY || !HAVE_DECL_STRLCPY
+#if !HAVE_DECL_STRLCPY
 extern size_t           strlcpy(char *, const char *, size_t);
 #endif
 #if !HAVE_SYMLINK



More information about the inn-committers mailing list