about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/netinet
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/netinet')
-rw-r--r--sysdeps/unix/sysv/linux/netinet/in.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sysdeps/unix/sysv/linux/netinet/in.h b/sysdeps/unix/sysv/linux/netinet/in.h
index 9ba2bdd5cb..9c128a16a3 100644
--- a/sysdeps/unix/sysv/linux/netinet/in.h
+++ b/sysdeps/unix/sysv/linux/netinet/in.h
@@ -81,6 +81,8 @@ struct ip_opts
     char ip_opts[40];		/* Actually variable in size.  */
   };
 
+__BEGIN_DECLS
+
 /* Functions to convert between host and network byte order.  */
 
 extern unsigned long int ntohl __P ((unsigned long int));
@@ -88,6 +90,11 @@ extern unsigned short int ntohs __P ((unsigned short int));
 extern unsigned long int htonl __P ((unsigned long int));
 extern unsigned short int htons __P ((unsigned short int));
 
+/* Bind socket FD to a privileged IP address SIN.  */
+extern int bindresvport __P ((int __fd, struct sockaddr_in * __sin));
+
+__END_DECLS
+
 #include <endian.h>
 
 #if __BYTE_ORDER == __BIG_ENDIAN
@@ -103,11 +110,4 @@ extern unsigned short int htons __P ((unsigned short int));
 #define	htons(x)	(x)
 #endif
 
-__BEGIN_DECLS
-
-/* Bind socket FD to a privileged IP address SIN.  */
-extern int bindresvport __P((int __fd, struct sockaddr_in * __sin));
-
-__END_DECLS
-
 #endif	/* netinet/in.h */