Просмотр исходного кода

Almost *EVERY* damn file was including config.h in the wrong spot. After
making it the first include, then off_t/size_t/etc could actually be
redefined to be 64-bit compatible.

Adam Heath лет назад: 23
Родитель
Сommit
dbcb744998
60 измененных файлов с 104 добавлено и 60 удалено
  1. 7 0
      ChangeLog
  2. 3 0
      debian/changelog
  3. 2 1
      dpkg-deb/build.c
  4. 1 1
      dpkg-deb/extract.c
  5. 1 1
      dpkg-deb/info.c
  6. 1 1
      dpkg-deb/main.c
  7. 3 2
      dselect/basecmds.cc
  8. 3 1
      dselect/baselist.cc
  9. 3 2
      dselect/basetop.cc
  10. 3 1
      dselect/bindings.cc
  11. 3 1
      dselect/main.cc
  12. 3 1
      dselect/methkeys.cc
  13. 3 1
      dselect/methlist.cc
  14. 3 1
      dselect/method.cc
  15. 3 1
      dselect/methparse.cc
  16. 3 1
      dselect/pkgcmds.cc
  17. 3 1
      dselect/pkgdepcon.cc
  18. 3 1
      dselect/pkgdisplay.cc
  19. 3 1
      dselect/pkginfo.cc
  20. 3 1
      dselect/pkgkeys.cc
  21. 3 1
      dselect/pkglist.cc
  22. 3 1
      dselect/pkgsublist.cc
  23. 3 1
      dselect/pkgtop.cc
  24. 1 1
      lib/compat.c
  25. 1 1
      lib/database.c
  26. 1 1
      lib/dbmodify.c
  27. 1 1
      lib/dump.c
  28. 1 1
      lib/ehandle.c
  29. 1 1
      lib/fields.c
  30. 1 1
      lib/lock.c
  31. 1 1
      lib/md5.c
  32. 1 1
      lib/mlib.c
  33. 1 1
      lib/myopt.c
  34. 1 1
      lib/nfmalloc.c
  35. 1 1
      lib/parse.c
  36. 1 1
      lib/parsehelp.c
  37. 1 1
      lib/showcright.c
  38. 2 1
      lib/showpkg.c
  39. 1 1
      lib/varbuf.c
  40. 1 1
      lib/vercmp.c
  41. 1 1
      main/archives.c
  42. 1 1
      main/cleanup.c
  43. 1 1
      main/configure.c
  44. 1 1
      main/depcon.c
  45. 1 1
      main/enquiry.c
  46. 1 1
      main/errors.c
  47. 1 1
      main/filesdb.c
  48. 1 1
      main/help.c
  49. 1 1
      main/main.c
  50. 1 1
      main/packages.c
  51. 1 1
      main/processarc.c
  52. 1 1
      main/query.c
  53. 1 1
      main/remove.c
  54. 1 1
      main/select.c
  55. 1 1
      main/update.c
  56. 1 1
      split/info.c
  57. 1 1
      split/join.c
  58. 1 1
      split/main.c
  59. 1 1
      split/queue.c
  60. 1 1
      split/split.c

+ 7 - 0
ChangeLog

@@ -1,4 +1,11 @@
+Sat Oct 25 15:02:27 CDT 2003 Adam Heath <doogie@debian.org>
+
+  * almost all .c files: Almost *EVERY* damn file was including config.h in
+    the wrong spot.  After making it the first include, then
+    off_t/size_t/etc could actually be redefined to be 64-bit compatible.
+
 Sat Oct 25 12:47:22 CDT 2003 Adam Heath <doogie@debian.org>
 Sat Oct 25 12:47:22 CDT 2003 Adam Heath <doogie@debian.org>
+
   * scripts/dpkg-checkbuilddeps.pl: Fix dpkg-checkbuilddeps calling of
   * scripts/dpkg-checkbuilddeps.pl: Fix dpkg-checkbuilddeps calling of
     parsedep.  It wasn't setting use_arch.
     parsedep.  It wasn't setting use_arch.
 
 

+ 3 - 0
debian/changelog

@@ -1,5 +1,8 @@
 dpkg (1.10.16) unstable; urgency=low
 dpkg (1.10.16) unstable; urgency=low
 
 
+  * Almost *EVERY* damn file was including config.h in the wrong spot.
+    After making it the first include, then off_t/size_t/etc could actually
+    be redefined to be 64-bit compatible.
   * Jordi Mallach <jordi@debian.org>:
   * Jordi Mallach <jordi@debian.org>:
     Fix configure to set HAVE_SETLOCALE.  Closes: #211816
     Fix configure to set HAVE_SETLOCALE.  Closes: #211816
   * "Loïc Le Loarer" <lll_deb@m4x.org>:
   * "Loïc Le Loarer" <lll_deb@m4x.org>:

+ 2 - 1
dpkg-deb/build.c

@@ -20,6 +20,8 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
 
 
+#include <config.h>
+
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <stdlib.h>
 #include <stdlib.h>
@@ -38,7 +40,6 @@
 #include <zlib.h>
 #include <zlib.h>
 #endif
 #endif
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include "dpkg-deb.h"
 #include "dpkg-deb.h"

+ 1 - 1
dpkg-deb/extract.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -37,7 +38,6 @@
 #include <zlib.h>
 #include <zlib.h>
 #endif
 #endif
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-deb.h>
 #include <dpkg-deb.h>
 #include <myopt.h>
 #include <myopt.h>

+ 1 - 1
dpkg-deb/info.c

@@ -19,6 +19,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -33,7 +34,6 @@
 #include <limits.h>
 #include <limits.h>
 #include <ctype.h>
 #include <ctype.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <myopt.h>
 #include <myopt.h>

+ 1 - 1
dpkg-deb/main.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -33,7 +34,6 @@
 #include <ctype.h>
 #include <ctype.h>
 #include <assert.h>
 #include <assert.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <version.h>
 #include <version.h>
 #include <myopt.h>
 #include <myopt.h>

+ 3 - 2
dselect/basecmds.cc

@@ -19,13 +19,14 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
-
+extern "C" {
+#include <config.h>
+}
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/baselist.cc

@@ -19,6 +19,9 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -29,7 +32,6 @@
 #include <sys/termios.h>
 #include <sys/termios.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 2
dselect/basetop.cc

@@ -18,14 +18,15 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
-
+extern "C" {
+#include <config.h>
+}
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 #include <ctype.h>
 #include <ctype.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/bindings.cc

@@ -18,13 +18,15 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/main.cc

@@ -19,6 +19,9 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -36,7 +39,6 @@
 #include <term.h>
 #include <term.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <version.h>
 #include <version.h>

+ 3 - 1
dselect/methkeys.cc

@@ -18,13 +18,15 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/methlist.cc

@@ -19,6 +19,9 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -26,7 +29,6 @@
 #include <errno.h>
 #include <errno.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/method.cc

@@ -19,6 +19,9 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -38,7 +41,6 @@
 #include <sys/file.h>
 #include <sys/file.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/methparse.cc

@@ -18,6 +18,9 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -34,7 +37,6 @@
 
 
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/pkgcmds.cc

@@ -18,13 +18,15 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/pkgdepcon.cc

@@ -18,13 +18,15 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/pkgdisplay.cc

@@ -18,13 +18,15 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/pkginfo.cc

@@ -18,6 +18,9 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -25,7 +28,6 @@
 #include <ctype.h>
 #include <ctype.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/pkgkeys.cc

@@ -18,13 +18,15 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/pkglist.cc

@@ -19,6 +19,9 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -26,7 +29,6 @@
 #include <errno.h>
 #include <errno.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/pkgsublist.cc

@@ -18,13 +18,15 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 3 - 1
dselect/pkgtop.cc

@@ -18,6 +18,9 @@
  * License along with this; if not, write to the Free Software
  * License along with this; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+extern "C" {
+#include <config.h>
+}
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -25,7 +28,6 @@
 #include <ctype.h>
 #include <ctype.h>
 
 
 extern "C" {
 extern "C" {
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 }
 }

+ 1 - 1
lib/compat.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <errno.h>
 #include <errno.h>
 #include <signal.h>
 #include <signal.h>
@@ -30,7 +31,6 @@
 #include <sys/stat.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <unistd.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 
 
 #ifndef HAVE_VSNPRINTF
 #ifndef HAVE_VSNPRINTF

+ 1 - 1
lib/database.c

@@ -18,11 +18,11 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <ctype.h>
 #include <ctype.h>
 #include <string.h>
 #include <string.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 

+ 1 - 1
lib/dbmodify.c

@@ -19,6 +19,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -34,7 +35,6 @@
 #include <ctype.h>
 #include <ctype.h>
 #include <assert.h>
 #include <assert.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 

+ 1 - 1
lib/dump.c

@@ -21,6 +21,7 @@
  */
  */
 
 
 /* fixme: don't write uninteresting packages */
 /* fixme: don't write uninteresting packages */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -31,7 +32,6 @@
 #include <sys/types.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/stat.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include "parsedump.h"
 #include "parsedump.h"

+ 1 - 1
lib/ehandle.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -27,7 +28,6 @@
 #include <stdarg.h>
 #include <stdarg.h>
 #include <assert.h>
 #include <assert.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 

+ 1 - 1
lib/fields.c

@@ -19,12 +19,12 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <ctype.h>
 #include <ctype.h>
 #include <string.h>
 #include <string.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include "parsedump.h"
 #include "parsedump.h"

+ 1 - 1
lib/lock.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <unistd.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdlib.h>
@@ -28,7 +29,6 @@
 #include <fcntl.h>
 #include <fcntl.h>
 #include <sys/file.h>
 #include <sys/file.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 

+ 1 - 1
lib/md5.c

@@ -19,12 +19,12 @@
  *  - Ian Jackson <ian@chiark.greenend.org.uk>.
  *  - Ian Jackson <ian@chiark.greenend.org.uk>.
  * Still in the public domain.
  * Still in the public domain.
  */
  */
+#include "config.h"
 
 
 #include <string.h>		/* for memcpy() */
 #include <string.h>		/* for memcpy() */
 #include <sys/types.h>		/* for stupid systems */
 #include <sys/types.h>		/* for stupid systems */
 #include <netinet/in.h>		/* for ntohl() */
 #include <netinet/in.h>		/* for ntohl() */
 
 
-#include "config.h"
 #include "md5.h"
 #include "md5.h"
 
 
 #ifdef WORDS_BIGENDIAN
 #ifdef WORDS_BIGENDIAN

+ 1 - 1
lib/mlib.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <unistd.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <stdio.h>
@@ -30,7 +31,6 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include <sys/types.h>
 #include <sys/types.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <md5.h>
 #include <md5.h>

+ 1 - 1
lib/myopt.c

@@ -19,13 +19,13 @@
  * License along with this file; if not, write to the Free Software
  * License along with this file; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <string.h>
 #include <string.h>
 #include <errno.h>
 #include <errno.h>
 #include <ctype.h>
 #include <ctype.h>
 #include <stdlib.h>
 #include <stdlib.h>
 
 
-#include <config.h>
 #include <myopt.h>
 #include <myopt.h>
 #include <dpkg.h>
 #include <dpkg.h>
 
 

+ 1 - 1
lib/nfmalloc.c

@@ -18,11 +18,11 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 

+ 1 - 1
lib/parse.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -30,7 +31,6 @@
 #include <unistd.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <fcntl.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include "parsedump.h"
 #include "parsedump.h"

+ 1 - 1
lib/parsehelp.c

@@ -18,12 +18,12 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <ctype.h>
 #include <ctype.h>
 #include <string.h>
 #include <string.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include "parsedump.h"
 #include "parsedump.h"

+ 1 - 1
lib/showcright.c

@@ -18,12 +18,12 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdlib.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <fcntl.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 
 
 void showcopyright(const struct cmdinfo *c, const char *v) NONRETURNING;
 void showcopyright(const struct cmdinfo *c, const char *v) NONRETURNING;

+ 2 - 1
lib/showpkg.c

@@ -17,11 +17,12 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
+
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 

+ 1 - 1
lib/varbuf.c

@@ -18,12 +18,12 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdio.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 

+ 1 - 1
lib/vercmp.c

@@ -18,11 +18,11 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <ctype.h>
 #include <ctype.h>
 #include <string.h>
 #include <string.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include "parsedump.h"
 #include "parsedump.h"

+ 1 - 1
main/archives.c

@@ -19,6 +19,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <errno.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdio.h>
@@ -37,7 +38,6 @@
 #define obstack_chunk_alloc m_malloc
 #define obstack_chunk_alloc m_malloc
 #define obstack_chunk_free free
 #define obstack_chunk_free free
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <tarfn.h>
 #include <tarfn.h>

+ 1 - 1
main/cleanup.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <errno.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdio.h>
@@ -32,7 +33,6 @@
 #include <sys/stat.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <sys/types.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <tarfn.h>
 #include <tarfn.h>

+ 1 - 1
main/configure.c

@@ -19,6 +19,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <errno.h>
 #include <errno.h>
 #include <signal.h>
 #include <signal.h>
@@ -36,7 +37,6 @@
 #include <assert.h>
 #include <assert.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 

+ 1 - 1
main/depcon.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <errno.h>
 #include <errno.h>
 #include <unistd.h>
 #include <unistd.h>
@@ -25,7 +26,6 @@
 #include <sys/types.h>
 #include <sys/types.h>
 #include <assert.h>
 #include <assert.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 

+ 1 - 1
main/enquiry.c

@@ -20,6 +20,7 @@
  */
  */
 
 
 /* fixme: per-package audit */
 /* fixme: per-package audit */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -33,7 +34,6 @@
 #include <sys/termios.h>
 #include <sys/termios.h>
 #include <fcntl.h>
 #include <fcntl.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <myopt.h>
 #include <myopt.h>

+ 1 - 1
main/errors.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -32,7 +33,6 @@
 #include <limits.h>
 #include <limits.h>
 #include <ctype.h>
 #include <ctype.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <myopt.h>
 #include <myopt.h>

+ 1 - 1
main/filesdb.c

@@ -19,6 +19,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <assert.h>
 #include <assert.h>
 #include <unistd.h>
 #include <unistd.h>
@@ -31,7 +32,6 @@
 #include <grp.h>
 #include <grp.h>
 #include <sys/types.h>
 #include <sys/types.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 

+ 1 - 1
main/help.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <errno.h>
 #include <errno.h>
 #include <unistd.h>
 #include <unistd.h>
@@ -29,7 +30,6 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include <signal.h>
 #include <signal.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <version.h>
 #include <version.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>

+ 1 - 1
main/main.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -32,7 +33,6 @@
 #include <limits.h>
 #include <limits.h>
 #include <ctype.h>
 #include <ctype.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <version.h>
 #include <version.h>

+ 1 - 1
main/packages.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -32,7 +33,6 @@
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <myopt.h>
 #include <myopt.h>

+ 1 - 1
main/processarc.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <errno.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdio.h>
@@ -34,7 +35,6 @@
 #include <sys/types.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <tarfn.h>
 #include <tarfn.h>

+ 1 - 1
main/query.c

@@ -22,6 +22,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -35,7 +36,6 @@
 #include <sys/termios.h>
 #include <sys/termios.h>
 #include <fcntl.h>
 #include <fcntl.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <myopt.h>
 #include <myopt.h>

+ 1 - 1
main/remove.c

@@ -32,6 +32,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <errno.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdio.h>
@@ -47,7 +48,6 @@
 #include <string.h>
 #include <string.h>
 #include <assert.h>
 #include <assert.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <myopt.h>
 #include <myopt.h>

+ 1 - 1
main/select.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <string.h>
 #include <string.h>
@@ -25,7 +26,6 @@
 #include <fnmatch.h>
 #include <fnmatch.h>
 #include <ctype.h>
 #include <ctype.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 

+ 1 - 1
main/update.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <errno.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdio.h>
@@ -27,7 +28,6 @@
 #include <assert.h>
 #include <assert.h>
 #include <unistd.h>
 #include <unistd.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <myopt.h>
 #include <myopt.h>

+ 1 - 1
split/info.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
@@ -29,7 +30,6 @@
 #include <ar.h>
 #include <ar.h>
 #include <ctype.h>
 #include <ctype.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include "dpkg-split.h"
 #include "dpkg-split.h"

+ 1 - 1
split/join.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
@@ -25,7 +26,6 @@
 #include <assert.h>
 #include <assert.h>
 #include <string.h>
 #include <string.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include "dpkg-split.h"
 #include "dpkg-split.h"

+ 1 - 1
split/main.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <string.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdio.h>
@@ -25,7 +26,6 @@
 #include <limits.h>
 #include <limits.h>
 #include <assert.h>
 #include <assert.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include <version.h>
 #include <version.h>

+ 1 - 1
split/queue.c

@@ -27,6 +27,7 @@
  *  <md5sum>.<maxpartlen>.<thispartn>.<maxpartn>
  *  <md5sum>.<maxpartlen>.<thispartn>.<maxpartn>
  * all numbers in hex
  * all numbers in hex
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
@@ -38,7 +39,6 @@
 #include <dirent.h>
 #include <dirent.h>
 #include <string.h>
 #include <string.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include "dpkg-split.h"
 #include "dpkg-split.h"

+ 1 - 1
split/split.c

@@ -18,6 +18,7 @@
  * License along with dpkg; if not, write to the Free Software
  * License along with dpkg; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  */
+#include <config.h>
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>
@@ -28,7 +29,6 @@
 #include <sys/stat.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <fcntl.h>
 
 
-#include <config.h>
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 #include "dpkg-split.h"
 #include "dpkg-split.h"