summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/cmd/ipf/tools/ipfzone.c8
-rw-r--r--usr/src/cmd/ipf/tools/ipfzone.h6
2 files changed, 6 insertions, 8 deletions
diff --git a/usr/src/cmd/ipf/tools/ipfzone.c b/usr/src/cmd/ipf/tools/ipfzone.c
index e158c1d80f..1dabbcd447 100644
--- a/usr/src/cmd/ipf/tools/ipfzone.c
+++ b/usr/src/cmd/ipf/tools/ipfzone.c
@@ -6,10 +6,14 @@
*/
-#include <zone.h>
+#include <errno.h>
+#include <net/if.h>
#include <stdio.h>
-#include <sys/ioctl.h>
+#include <string.h>
+#include <unistd.h>
+#include <zone.h>
+#include "netinet/ip_fil.h"
#include "ipfzone.h"
static ipfzoneobj_t ipzo;
diff --git a/usr/src/cmd/ipf/tools/ipfzone.h b/usr/src/cmd/ipf/tools/ipfzone.h
index f1998e43f3..a62747af7d 100644
--- a/usr/src/cmd/ipf/tools/ipfzone.h
+++ b/usr/src/cmd/ipf/tools/ipfzone.h
@@ -8,15 +8,9 @@
#ifndef __IPFZONE_H__
#define __IPFZONE_H__
-#include <stdarg.h>
-#include <net/if.h>
-#include "netinet/ip_fil.h"
-
void getzonearg(int, char *[], const char *);
void getzoneopt(int, char *[], const char *);
int setzone(int);
void setzonename(const char *);
-extern zoneid_t zoneid;
-
#endif /* __IPFZONE_H__ */