diff options
author | Fredrik Fornwall <fredrik@fornwall.net> | 2014-06-19 01:40:37 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-08-09 22:14:34 +0200 |
commit | 73bc422dee4accae89e800d50cb79068e77a7c31 (patch) | |
tree | a2d37a4a217e82df62006bd2523584adff9a4d02 /lib | |
parent | 586439a2fbba72d474f2c621cfa8cadde04bf9bb (diff) | |
download | dpkg-73bc422dee4accae89e800d50cb79068e77a7c31.tar.gz |
Replace obsolete <sys/fcntl.h> with <fcntl.h>
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 have 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>.
Closes: #752036
Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dpkg/trigdeferred.l | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dpkg/trigdeferred.l b/lib/dpkg/trigdeferred.l index af4f9a952..a886055a2 100644 --- a/lib/dpkg/trigdeferred.l +++ b/lib/dpkg/trigdeferred.l @@ -41,7 +41,8 @@ %{ #include <sys/stat.h> -#include <sys/fcntl.h> + +#include <fcntl.h> #include <dpkg/i18n.h> #include <dpkg/dpkg.h> |