Author: rodrigc
Date: Sun Sep 20 04:15:37 2015
New Revision: 288012
URL: https://svnweb.freebsd.org/changeset/base/288012

Log:
  Add missing includes to eliminate -Wmissing-prototypes warnings

Modified:
  head/lib/libc/net/ntoh.c
  head/lib/libc/net/sockatmark.c

Modified: head/lib/libc/net/ntoh.c
==============================================================================
--- head/lib/libc/net/ntoh.c    Sun Sep 20 04:06:55 2015        (r288011)
+++ head/lib/libc/net/ntoh.c    Sun Sep 20 04:15:37 2015        (r288012)
@@ -28,6 +28,8 @@
 __FBSDID("$FreeBSD$");
 
 #include <sys/endian.h>
+#define _BYTEORDER_FUNC_DEFINED
+#include <arpa/inet.h>
 
 uint32_t
 htonl(uint32_t hl)

Modified: head/lib/libc/net/sockatmark.c
==============================================================================
--- head/lib/libc/net/sockatmark.c      Sun Sep 20 04:06:55 2015        
(r288011)
+++ head/lib/libc/net/sockatmark.c      Sun Sep 20 04:15:37 2015        
(r288012)
@@ -26,6 +26,7 @@
  */
 #include "namespace.h"
 #include <sys/ioctl.h>
+#include <sys/socket.h>
 #include "un-namespace.h"
 
 int sockatmark(int s)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to