Преглед изворни кода

u-a: Include <limits.h> for _POSIX_MAX_PATH

Needed on at least Solaris and Darwin, and as defined per POSIX.

Signed-off-by: Guillem Jover <guillem@debian.org>
Fabian Groffen пре 16 година
родитељ
комит
55ed7ef4ac
2 измењених фајлова са 2 додато и 0 уклоњено
  1. 1 0
      debian/changelog
  2. 1 0
      utils/update-alternatives.c

+ 1 - 0
debian/changelog

@@ -10,6 +10,7 @@ dpkg (1.15.8.4) UNRELEASED; urgency=low
   * Fix compilation on Solaris and Darwin:
     - Link update-alternatives against libintl if libc does not have i18n
       support.
+    - Include <limits.h> for _POSIX_MAX_PATH in update-alternatives.
     Thanks to Fabian Groffen <grobian@gentoo.org>.
 
   [ Raphaël Hertzog ]

+ 1 - 0
utils/update-alternatives.c

@@ -41,6 +41,7 @@
 #include <assert.h>
 #include <locale.h>
 #include <ctype.h>
+#include <limits.h>
 
 #include <dpkg/macros.h>
 #include <dpkg/i18n.h>