net/if.h missing includes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

net/if.h missing includes

Jeremie Courreges-Anglas-2

<net/if.h> isn't standalone if __BSD_VISIBLE is defined (the default).

This has caused fallout earlier in the ports tree:
  https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/net/samba/patches/patch-lib_replace_wscript.diff?r1=1.7&r2=1.8
  https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/net/dnsdist/patches/patch-dnsdist-lua_cc?rev=1.1&content-type=text/plain

Went in an mkr on amd64.  ok?


Index: sys/net/if.h
===================================================================
RCS file: /cvs/src/sys/net/if.h,v
retrieving revision 1.192
diff -u -p -r1.192 if.h
--- sys/net/if.h 19 Feb 2018 04:43:48 -0000 1.192
+++ sys/net/if.h 2 Apr 2018 18:08:03 -0000
@@ -59,6 +59,10 @@ __END_DECLS
 
 #if __BSD_VISIBLE
 
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/socket.h>
+
 /*
  * Structure used to query names of interface cloners.
  */


--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE