]> andersk Git - openssh.git/blobdiff - openbsd-compat/rresvport.c
- (dtucker) [configure.ac defines.h sftp-client.c sftp-server.c sftp.c
[openssh.git] / openbsd-compat / rresvport.c
index aa72f4ba27234bc23b16b7ee4ef2c31f8ef0641c..5b0275ce06320e008cac39f0cc12a28ea35ca6af 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenBSD: rresvport.c,v 1.9 2005/11/10 10:00:17 espie Exp $ */
 /*
  * Copyright (c) 1995, 1996, 1998 Theo de Raadt.  All rights reserved.
  * Copyright (c) 1983, 1993, 1994
 
 #ifndef HAVE_RRESVPORT_AF
 
-#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: rresvport.c,v 1.6 2003/06/03 02:11:35 deraadt Exp $";
-#endif /* LIBC_SCCS and not lint */
+#include <sys/types.h>
+#include <sys/socket.h>
 
-#include "includes.h"
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
 
 #if 0
 int
-rresvport(alport)
-       int *alport;
+rresvport(int *alport)
 {
        return rresvport_af(alport, AF_INET);
 }
 #endif
 
-int 
+int
 rresvport_af(int *alport, sa_family_t af)
 {
        struct sockaddr_storage ss;
This page took 0.038644 seconds and 4 git commands to generate.