summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-07-02 00:18:56 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-07-02 00:18:56 +0000
commit69f4a3eb0a9fb6682772f51944902608fd3e436c (patch)
tree39168e0162ce51b44606645a6ca91b6174b3b522 /sys
parentdca688188bd57dae39774c80974f2ef083a8c742 (diff)
Move prototype for bindresvport(3) to <netiniet/in.h> as it is
not rpc-specific and other stuff uses it now.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/in.h11
1 files changed, 9 insertions, 2 deletions
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));