Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2015 04:15:38 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288012 - head/lib/libc/net
Message-ID:  <201509200415.t8K4FcT3076537@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509200415.t8K4FcT3076537>