The following commit has been merged in the master branch:
commit 0fec3eb7e3c820061d3aa44dd83b7be3decb03c4
Author: Guillem Jover <[email protected]>
Date: Sun Sep 25 03:18:47 2011 +0200
libdpkg: Move <config.h> and <compat.h> to the top of the flex file
Use the %top directive to force those includes to be the first in the
source code, so that the system correctly picks up desired features,
like LFS.
Prompted-by: Jonathan Nieder <[email protected]>
diff --git a/debian/changelog b/debian/changelog
index 6541c24..033d71b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,9 @@
dpkg (1.16.2) UNRELEASED; urgency=low
+ [ Guillem Jover ]
+ * Move <config.h> and <compat.h> to the top of trigdeferred.l to properly
+ use the configured features and compat code.
+
[ Updated man page translations ]
* German (Helge Kreutzmann).
diff --git a/lib/dpkg/trigdeferred.l b/lib/dpkg/trigdeferred.l
index 31e8e63..1cb5ccc 100644
--- a/lib/dpkg/trigdeferred.l
+++ b/lib/dpkg/trigdeferred.l
@@ -32,11 +32,12 @@
%x midline
-%{
-
+%top {
#include <config.h>
#include <compat.h>
+}
+%{
#include <sys/stat.h>
#include <sys/fcntl.h>
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]