Package: dpkg
Version: 1.7.10
Severity: normal
Tags: patch

The standard location <fcntl.h> instead of <sys/fcntl.h> is the
preferred one since a long time (Changelog.old mentions this change
being made in 1996).

This patch fixes the two occurrences that has slipped through, making
the includes consistent with other files in dpkg as well as fixing
compiling on e.g. Android which lacks <sys/fcntl.h>.

Patch:
diff --git a/lib/dpkg/trigdeferred.l b/lib/dpkg/trigdeferred.l
index af4f9a9..43bae83 100644
--- a/lib/dpkg/trigdeferred.l
+++ b/lib/dpkg/trigdeferred.l
@@ -41,7 +41,7 @@

 %{
 #include <sys/stat.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>

 #include <dpkg/i18n.h>
 #include <dpkg/dpkg.h>
diff --git a/src/trigproc.c b/src/trigproc.c
index af65b4b..ae64b28 100644
--- a/src/trigproc.c
+++ b/src/trigproc.c
@@ -23,7 +23,7 @@
 #include <config.h>
 #include <compat.h>

-#include <sys/fcntl.h>
+#include <fcntl.h>
 #include <sys/stat.h>

 #include <assert.h>


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to