summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-08-26 02:58:09 +0200
committerGuillem Jover <guillem@debian.org>2016-10-30 05:45:06 +0100
commit251474f44384a584b8ac65407fb6ccc2cca66b97 (patch)
tree8f4606b3118b4262c69b88bc2a41561e8a5e6a38
parent1d4e37d00e0aa8bd8b11bb034eb45812f3ec8ca5 (diff)
downloaddpkg-251474f44384a584b8ac65407fb6ccc2cca66b97.tar.gz
libcompat: Add missing <errno.h> include
Warned-by: gcc on AIX
-rw-r--r--debian/changelog1
-rw-r--r--lib/compat/strerror.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index d2d6da581..985e9c959 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -57,6 +57,7 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
ar_hdr struct, as the ar format is not standardized and does vary
across systems, for example on AIX.
- Add <sys/sysmacros.h> on AIX for major() and minor().
+ - Add missing <errno.h> in libcompat.
* Perl modules:
- Obsolete Source-Version substvar in Dpkg::Substvars by emitting errors.
- Rework keyring hooks in Dpkg::Vendor. Deprecate the keyrings hook, and
diff --git a/lib/compat/strerror.c b/lib/compat/strerror.c
index 5c895ab65..e35ffc149 100644
--- a/lib/compat/strerror.c
+++ b/lib/compat/strerror.c
@@ -19,6 +19,7 @@
#include <config.h>
+#include <errno.h>
#include <stdio.h>
#include <gettext.h>