The following commit has been merged in the master branch:
commit 68a6242098c4b9330d1e5b49a8fea14547cec1aa
Author: Guillem Jover <[email protected]>
Date: Wed Nov 16 02:27:36 2011 +0100
Do not include unneeded <sys/cdefs.h>
The md5 module imported from OpenBSD had non-standard __attribute__
attached to function declarations. As those were removed on import,
remove the now unused include too.
The start-stop-daemon program uses the dpkg provided C macro
definitions so there's no need for <sys/cdefs.h> there either, even
if its inclusion is conditional.
Reported-by: Andrew Stormont <[email protected]>
diff --git a/configure.ac b/configure.ac
index 7edcd26..5d77192 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,7 +62,7 @@ fi
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stddef.h error.h locale.h libintl.h kvm.h \
- sys/cdefs.h sys/syscall.h linux/fiemap.h])
+ sys/syscall.h linux/fiemap.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_BIGENDIAN
diff --git a/lib/dpkg/md5.h b/lib/dpkg/md5.h
index 731a2af..f624360 100644
--- a/lib/dpkg/md5.h
+++ b/lib/dpkg/md5.h
@@ -25,8 +25,6 @@ typedef struct MD5Context {
u_int8_t buffer[MD5_BLOCK_LENGTH]; /* input buffer */
} MD5_CTX;
-#include <sys/cdefs.h>
-
void MD5Init(MD5_CTX *);
void MD5Update(MD5_CTX *, const u_int8_t *, size_t);
void MD5Pad(MD5_CTX *);
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index 33d191c..ecbabd4 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -45,10 +45,6 @@
#define MIN_POLL_INTERVAL 20000 /* µs */
-#ifdef HAVE_SYS_CDEFS_H
-#include <sys/cdefs.h>
-#endif
-
#ifdef HAVE_SYS_SYSCALL_H
#include <sys/syscall.h>
#endif
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]