Code

Include config.h in source files.
[sysdb.git] / src / liboconfig / parser.y
index 19f58b2b75c4f19b9b196f5d15b85f8f78dd21ac..6f40df396c322e32e5dad24c96bff7820d87ad5d 100644 (file)
  */
 
 %{
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdlib.h>
 #include <string.h>
 #include "oconfig.h"
@@ -29,6 +33,9 @@ static int yyerror (const char *s);
 extern int yylineno;
 extern char *yytext;
 
+/* Lexer functions */
+int yylex (void);
+
 extern oconfig_item_t *ci_root;
 extern char           *c_file;
 %}