Discussion:
dhclient.c patch
Edgar Pettijohn
2016-02-05 00:38:10 UTC
Permalink
--- dhclient.c.orig Thu Feb 4 17:57:41 2016
+++ dhclient.c Thu Feb 4 17:57:55 2016
@@ -57,7 +57,6 @@
#include "privsep.h"

#include <sys/types.h>
-#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/uio.h>

<sys/socket.h> is brought in through dhcpd.h
Michael McConville
2016-02-05 00:58:31 UTC
Permalink
Post by Edgar Pettijohn
--- dhclient.c.orig Thu Feb 4 17:57:41 2016
+++ dhclient.c Thu Feb 4 17:57:55 2016
@@ -57,7 +57,6 @@
#include "privsep.h"
#include <sys/types.h>
-#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
<sys/socket.h> is brought in through dhcpd.h
It'd probably be better to add <sys/socket.h> to all source files that
need it and remove it from dhcpd.h. We've been moving toward including
everything directly where it's needed. This makes builds faster and
makes files more portable. ksh(1) and less(1) have been partially
converted.

Loading...