gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / binutils / syslex.l
index 7e3f29861ba72cf6a86fbeffdef269331584d9ce..d376e3b1b3af45eee841b745ce565fd64b87bca6 100644 (file)
@@ -1,7 +1,7 @@
-%option noinput nounput
+%option noinput nounput noyywrap
 
 %{
-/* Copyright 2001, 2003, 2005, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 2001-2021 Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
 
    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
    02110-1301, USA.  */
 
-#include "config.h"
-#ifdef HAVE_STRING_H
+/* Note: config.h is #included via syslex_wrap.c.  */
+
 #include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#endif
 #include "sysinfo.h"
 
+#ifndef YY_NO_UNPUT
 #define YY_NO_UNPUT
-
-#ifndef yywrap
-static int yywrap (void) { return 1; }
 #endif
 
 extern int yylex (void);
@@ -44,7 +37,7 @@ extern int yylex (void);
 "[" { return '[';}
 "]" { return ']';}
 " " { ; }
-";".* { ; } 
+";".* { ; }
 "\t" { ; }
 "\n" { ; }
 "\""[^\"]*"\"" {
This page took 0.028084 seconds and 4 git commands to generate.