-/* $OpenBSD: flexdef.h,v 1.7 2004/02/03 21:20:17 espie Exp $ */
+/* $OpenBSD: flexdef.h,v 1.8 2015/10/10 05:47:54 deraadt Exp $ */
/* flexdef - definitions file for flex */
* PURPOSE.
*/
-/* @(#) $Header: /home/cvs/src/usr.bin/lex/flexdef.h,v 1.7 2004/02/03 21:20:17 espie Exp $ (LBL) */
+/* @(#) $Header: /home/cvs/src/usr.bin/lex/flexdef.h,v 1.8 2015/10/10 05:47:54 deraadt Exp $ (LBL) */
#include <stdio.h>
#include <ctype.h>
#ifdef STDC_HEADERS
#include <stdlib.h>
+#include <unistd.h>
#else
#ifdef HAVE_MALLOC_H
#include <malloc.h>
-/* $OpenBSD: main.c,v 1.14 2014/03/16 18:38:30 guenther Exp $ */
+/* $OpenBSD: main.c,v 1.15 2015/10/10 05:47:54 deraadt Exp $ */
/* flex - tool to generate fast lexical analyzers */
* PURPOSE.
*/
-/* $Header: /home/cvs/src/usr.bin/lex/main.c,v 1.14 2014/03/16 18:38:30 guenther Exp $ */
+/* $Header: /home/cvs/src/usr.bin/lex/main.c,v 1.15 2015/10/10 05:47:54 deraadt Exp $ */
#include "flexdef.h"
{
int i;
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ {
+ fprintf( stderr, _( "%s: pledge\n" ),
+ program_name);
+ exit(1);
+ }
+
#ifdef THINK_C
argc = ccommand( &argv );
#endif