[Pkg-libvirt-commits] [libguestfs] 33/59: builder: fix inclusion of <config.h> in lex-generated source

Hilko Bengen bengen at moszumanska.debian.org
Wed Nov 26 22:04:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit c76dcb185e944ec77bcd2dd49dc6a4b7ad4e4bfd
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Wed Oct 29 18:53:07 2014 +0100

    builder: fix inclusion of <config.h> in lex-generated source
    
    Use a %top block for including <config.h>, so it is included prior to
    any other include, even for system ones. This makes sure its definitions
    are properly used in gnulib replacement headers.
    
    (cherry picked from commit aba82825a329f9f99438fec161f1b0fb2098bdc9)
---
 builder/index-scan.l | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/builder/index-scan.l b/builder/index-scan.l
index e3fe377..b5eade5 100644
--- a/builder/index-scan.l
+++ b/builder/index-scan.l
@@ -16,9 +16,11 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-%{
+%top{
 #include <config.h>
+}
 
+%{
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list