Prechádzať zdrojové kódy

libcompat: Add missing <errno.h> include

Warned-by: gcc on AIX
Guillem Jover 10 rokov pred
rodič
commit
251474f443
2 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 1 0
      debian/changelog
  2. 1 0
      lib/compat/strerror.c

+ 1 - 0
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

+ 1 - 0
lib/compat/strerror.c

@@ -19,6 +19,7 @@
 
 #include <config.h>
 
+#include <errno.h>
 #include <stdio.h>
 #include <gettext.h>