dhcpcd-discuss

Re: Error building 8.1.9 for Smoothwall Express

Roy Marples

Wed Jun 10 06:18:11 2020

Hi Neal

On 09/06/2020 23:19, Neal P. Murphy wrote:
Found and patched. Problem was introduced in 8.1.7. In if.c, I moved line 58 (include fcntl.h) to after line 33. It builds now. Testing will show if anything broke.

N

Just to confirm, this patch fixes it for you?

Roy

diff --git a/src/if.c b/src/if.c
index c9327384..9e158a9c 100644
--- a/src/if.c
+++ b/src/if.c
@@ -31,6 +31,8 @@
 #include <sys/ioctl.h>
 #include <sys/socket.h>

+#include <fcntl.h> /* Needs to be here for old Linux */
+
 #include "config.h"

 #include <net/if.h>
@@ -54,7 +56,6 @@
 #include <errno.h>
 #include <ifaddrs.h>
 #include <inttypes.h>
-#include <fcntl.h>
 #include <fnmatch.h>
 #include <stddef.h>
 #include <stdio.h>

Follow-Ups:
Re: Error building 8.1.9 for Smoothwall ExpressEd W
Re: Error building 8.1.9 for Smoothwall ExpressNeal P. Murphy
References:
Error building 8.1.9 for Smoothwall ExpressNeal P. Murphy
Re: Error building 8.1.9 for Smoothwall ExpressNeal P. Murphy
Archive administrator: postmaster@marples.name