INN commit: trunk (3 files)

INN Commit rra at isc.org
Thu Aug 4 19:57:28 UTC 2016


    Date: Thursday, August 4, 2016 @ 12:57:28
  Author: iulius
Revision: 10044

Add missing prototypes for replacement functions

Modified:
  trunk/configure.ac
  trunk/include/clibrary.h
  trunk/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:56:42 UTC (rev 10043)
+++ configure.ac	2016-08-04 19:57:28 UTC (rev 10044)
@@ -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:56:42 UTC (rev 10043)
+++ include/clibrary.h	2016-08-04 19:57:28 UTC (rev 10044)
@@ -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:56:42 UTC (rev 10043)
+++ support/getrra-c-util	2016-08-04 19:57:28 UTC (rev 10044)
@@ -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