INN commit: branches/2.6 (3 files)

INN Commit rra at isc.org
Thu Aug 4 20:04:04 UTC 2016


    Date: Thursday, August 4, 2016 @ 13:04:04
  Author: iulius
Revision: 10046

Add missing prototypes for replacement functions

Modified:
  branches/2.6/configure.ac
  branches/2.6/include/clibrary.h
  branches/2.6/support/getrra-c-util

-----------------------+
 configure.ac          |    2 +-
 include/clibrary.h    |   16 ++++++++++++++++
 support/getrra-c-util |   16 ++++++++++++++++
 3 files changed, 33 insertions(+), 1 deletion(-)

Modified: configure.ac
===================================================================
--- configure.ac	2016-08-04 19:59:01 UTC (rev 10045)
+++ configure.ac	2016-08-04 20:04:04 UTC (rev 10046)
@@ -651,7 +651,7 @@
 AC_REPLACE_FUNCS(asprintf getaddrinfo getnameinfo getpagesize \
                  inet_aton inet_ntop mkstemp pread pwrite reallocarray \
                  setenv seteuid strcasecmp \
-                 strlcat strlcpy strspn symlink)
+                 strlcat strlcpy strspn strtok symlink)
 
 dnl Probe for fseeko and ftello, which take off_t instead of int.
 if test x"$inn_enable_largefiles" = xyes ; then

Modified: include/clibrary.h
===================================================================
--- include/clibrary.h	2016-08-04 19:59:01 UTC (rev 10045)
+++ include/clibrary.h	2016-08-04 20:04:04 UTC (rev 10046)
@@ -201,6 +201,22 @@
 #if !HAVE_DECL_STRLCPY
 extern size_t strlcpy(char *, const char *, size_t);
 #endif
+#if !HAVE_GETPAGESIZE
+extern int getpagesize(void);
+#endif
+#if !HAVE_STRCASECMP
+extern int strcasecmp(const char *, const char *);
+extern int strncasecmp(const char *, const char *, size_t);
+#endif
+#if !HAVE_STRSPN
+extern size_t strspn(const char *, const char *);
+#endif
+#if !HAVE_STRTOK
+extern char * strtok(char *, const char *);
+#endif
+#if !HAVE_MEMCMP
+extern int memcmp(const void *, const void *, size_t);
+#endif
 
 END_DECLS
 

Modified: support/getrra-c-util
===================================================================
--- support/getrra-c-util	2016-08-04 19:59:01 UTC (rev 10045)
+++ support/getrra-c-util	2016-08-04 20:04:04 UTC (rev 10046)
@@ -159,6 +159,22 @@
 #endif\\
 #if !HAVE_DECL_STRLCPY\\
 extern size_t strlcpy(char *, const char *, size_t);\\
+#endif\\
+#if !HAVE_GETPAGESIZE\\
+extern int getpagesize(void);\\
+#endif\\
+#if !HAVE_STRCASECMP\\
+extern int strcasecmp(const char *, const char *);\\
+extern int strncasecmp(const char *, const char *, size_t);\\
+#endif\\
+#if !HAVE_STRSPN\\
+extern size_t strspn(const char *, const char *);\\
+#endif\\
+#if !HAVE_STRTOK\\
+extern char * strtok(char *, const char *);\\
+#endif\\
+#if !HAVE_MEMCMP\\
+extern int memcmp(const void *, const void *, size_t);\\
 #endif" \
                -e '/#if !HAVE_DAEMON/,+2d' \
                -e '/#if !HAVE_ISSETUGID/,+2d' \



More information about the inn-committers mailing list