Don't depend on yacc to include stdlib.h or string.h. trunk
authorjoerg <joerg@NetBSD.org>
Sun, 04 Jan 2015 18:30:05 +0000
branchtrunk
changeset 232603 a1e6c0d6d28a
parent 232602 3e74e5324b66
child 232604 7297d5e156e1
Don't depend on yacc to include stdlib.h or string.h.
usr.sbin/npf/npfctl/npf_parse.y
--- a/usr.sbin/npf/npfctl/npf_parse.y	Sun Jan 04 18:18:20 2015 +0000
+++ b/usr.sbin/npf/npfctl/npf_parse.y	Sun Jan 04 18:30:05 2015 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: npf_parse.y,v 1.36 2014/12/26 22:44:54 christos Exp $	*/
+/*	$NetBSD: npf_parse.y,v 1.37 2015/01/04 18:30:05 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2011-2014 The NetBSD Foundation, Inc.
@@ -31,10 +31,12 @@
 
 %{
 
+#include <err.h>
+#include <netdb.h>
 #include <stdio.h>
-#include <err.h>
+#include <stdlib.h>
+#include <string.h>
 #include <vis.h>
-#include <netdb.h>
 
 #include "npfctl.h"