summaryrefslogtreecommitdiff
path: root/sbin/ipf/ipf.h
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-02-11 22:24:21 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-02-11 22:24:21 +0000
commit80aea2f1d26c615419d2d028087115c47f9fd46f (patch)
treef63dc8d784c2927447f3929c843a58673ed5ffc0 /sbin/ipf/ipf.h
parent5e04debc4b0038a40277cd3f8198955ee51896d3 (diff)
IPF 1.3.7
Diffstat (limited to 'sbin/ipf/ipf.h')
-rw-r--r--sbin/ipf/ipf.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sbin/ipf/ipf.h b/sbin/ipf/ipf.h
index 86a60fa7adc..c2873895b55 100644
--- a/sbin/ipf/ipf.h
+++ b/sbin/ipf/ipf.h
@@ -6,9 +6,12 @@
* to the original author and the contributors.
*
* @(#)ipf.h 1.12 6/5/96
- * $Id: ipf.h,v 1.5 1996/07/18 05:11:02 dm Exp $
+ * $Id: ipf.h,v 1.6 1997/02/11 22:23:39 kstailey Exp $
*/
+#ifndef SOLARIS
+#define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4)))
+#endif
#define OPT_REMOVE 0x00001
#define OPT_DEBUG 0x00002
#define OPT_OUTQUE FR_OUTQUE /* 0x0004 */
@@ -47,6 +50,9 @@ struct ipopt_names {
extern u_long hostnum(), optname();
extern void printpacket();
+#if SOLARIS
+extern int inet_aton();
+#endif
#ifdef sun
#define STRERROR(x) sys_errlist[x]
@@ -55,3 +61,7 @@ extern char *sys_errlist[];
#define STRERROR(x) strerror(x)
#endif
+#ifndef MIN
+#define MIN(a,b) ((a) > (b) ? (b) : (a))
+#endif
+