diff --git scanner.l scanner.l index 064e9c8..93d7b97 100644 --- scanner.l +++ scanner.l @@ -1,3 +1,10 @@ +%top{ +/* Must come first for _LARGE_FILE_API on AIX. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +} + %{ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -25,10 +32,6 @@ static const char rcsid[] _U_ = "@(#) $Header: /tcpdump/master/libpcap/scanner.l,v 1.112 2008-02-06 10:21:30 guy Exp $ (LBL)"; #endif -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #ifdef WIN32 #include #else /* WIN32 */