Dear all, on OpenBSD the target "ftpd" would want to use Yacc in order to produce "ftpd/ftpcmd.c". Thereby a short preamble arises, see below. The interesting fact is that the simple act of manually moving
#include <config.h> to be the first inclusion ever found by the compiler, is itself necesary and sufficient for a successful compilation of Inetutils on OpenBSD from a bootstrapped source tree. We could perhaps convince Yacc to delay the preamble somewhat, thus relaxing the preparation dependency on GNU Bison. Best regards, Mats #ifndef lint /*static char yysccsid[] = "from: @(#)yaccpar 1.9 (Berkeley) 02/21/93";*/ static char yyrcsid[] #if __GNUC__ >= 2 __attribute__ ((unused)) #endif /* __GNUC__ >= 2 */ = "$OpenBSD: skeleton.c,v 1.29 2008/07/08 15:06:50 otto Exp $"; #endif #include <stdlib.h> #include <string.h> #define YYBYACC 1 #define YYMAJOR 1 #define YYMINOR 9 #define YYLEX yylex() #define YYEMPTY -1 #define yyclearin (yychar=(YYEMPTY)) #define yyerrok (yyerrflag=0) #define YYRECOVERING() (yyerrflag!=0) #define YYPREFIX "yy" #line 56 "ftpcmd.y" #include <config.h>
