summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/rpc/rpc.h1
-rw-r--r--sys/netinet/in.h11
2 files changed, 9 insertions, 3 deletions
diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h
index 2664e9ba769..48ed49c8685 100644
--- a/include/rpc/rpc.h
+++ b/include/rpc/rpc.h
@@ -88,7 +88,6 @@ extern struct rpcent *getrpcent __P((void));
extern void setrpcent __P((int));
extern void endrpcent __P((void));
-extern int bindresvport __P((int, struct sockaddr_in *));
extern int get_myaddress __P((struct sockaddr_in *));
__END_DECLS
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 9fca4a44a4c..4238c797f07 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.h,v 1.8 1997/02/28 03:44:52 angelos Exp $ */
+/* $OpenBSD: in.h,v 1.9 1997/07/02 00:18:55 millert Exp $ */
/* $NetBSD: in.h,v 1.20 1996/02/13 23:41:47 christos Exp $ */
/*
@@ -341,8 +341,15 @@ struct ip_mreq {
{ "porthilast", CTLTYPE_INT }, \
}
+#ifndef _KERNEL
-#ifdef _KERNEL
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
+int bindresvport __P((int, struct sockaddr_in *));
+__END_DECLS
+
+#else
int in_broadcast __P((struct in_addr, struct ifnet *));
int in_canforward __P((struct in_addr));
int in_cksum __P((struct mbuf *, int));