The following commit has been merged in the master branch:
commit 86ec744869dc82cf5d79af5fa96c4dbd09eaebc3
Author: Guillem Jover <[email protected]>
Date:   Sun Sep 25 03:20:55 2011 +0200

    build: Check for the presence of the strnlen declaration
    
    This will define the HAVE_DECL_STRNLEN macro, needed so that the
    strnlen.h declares the function in case the system lacks it.

diff --git a/configure.ac b/configure.ac
index cef148e..b514716 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,6 +83,7 @@ DPKG_CHECK_PROGNAME
 DPKG_CHECK_COMPAT_FUNCS([getopt getopt_long obstack_free \
                          strnlen strerror strsignal asprintf \
                          scandir alphasort unsetenv])
+AC_CHECK_DECLS([strnlen], [[#include <string.h>]])
 AC_CHECK_FUNCS([strtoul strtoimax isascii memcpy setsid getdtablesize \
                 getprogname getexecname lutimes posix_fadvise])
 
diff --git a/debian/changelog b/debian/changelog
index a53d077..b8e527d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ dpkg (1.16.2) UNRELEASED; urgency=low
     the obstack compat module from gnulib.
   * Link the libdpkg unit tests with libcompat and libintl, so that systems
     needing them will compile correctly.
+  * Check for the presence of the strnlen declaration and correctly provide
+    the compat one in case the systems lacks it.
 
   [ Updated man page translations ]
   * German (Helge Kreutzmann).

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to