The following commit has been merged in the master branch:
commit 59168691c0d410f818350ab9d83515aafa4b4591
Author: Guillem Jover <[email protected]>
Date:   Thu Sep 24 12:42:50 2009 +0200

    libcompat: Define WCOREDUMP only if the system does not have it
    
    Due to <compat.h> being included first, WCOREDUMP was being defined
    always to the dummy version.

diff --git a/configure.ac b/configure.ac
index d0c3e3d..c678c30 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,6 +95,7 @@ DPKG_C_ATTRIBUTE
 
 # Checks for library functions.
 DPKG_FUNC_VA_COPY
+DPKG_CHECK_DECL([WCOREDUMP], [sys/wait.h])
 DPKG_CHECK_COMPAT_FUNCS([getopt getopt_long obstack_free \
                          vsnprintf snprintf strnlen strerror strsignal \
                          scandir alphasort unsetenv])
diff --git a/lib/compat/compat.h b/lib/compat/compat.h
index b0f22f9..3af717d 100644
--- a/lib/compat/compat.h
+++ b/lib/compat/compat.h
@@ -35,7 +35,7 @@ extern "C" {
  * Define WCOREDUMP if we don't have it already, coredumps won't be
  * detected, though.
  */
-#ifndef WCOREDUMP
+#ifndef HAVE_WCOREDUMP
 #define WCOREDUMP(x) 0
 #endif
 

-- 
dpkg's main repository


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

Reply via email to