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

libdpkg: Include needed header files

Guillem Jover пре 18 година
родитељ
комит
31e51b79b0
3 измењених фајлова са 10 додато и 0 уклоњено
  1. 5 0
      ChangeLog
  2. 2 0
      lib/dpkg-priv.h
  3. 3 0
      lib/string.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-07-02  Guillem Jover  <guillem@debian.org>
+
+	* lib/dpkg-priv.h: Include <stddef.h>.
+	* lib/string.c: Include <config.h> and <dpkg-priv.h>.
+
 2008-07-02  Guillem Jover  <guillem@debian.org>
 
 	* dselect/Makefile.am (curkeys.h): Use '$(CPP)' instead of '$(CC) -E'.

+ 2 - 0
lib/dpkg-priv.h

@@ -26,6 +26,8 @@
 extern "C" {
 #endif
 
+#include <stddef.h>
+
 /* Language definitions. */
 
 #ifndef sizeof_array

+ 3 - 0
lib/string.c

@@ -20,6 +20,9 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#include <config.h>
+#include <dpkg-priv.h>
+
 char *
 str_escape_fmt(char *dst, const char *src)
 {