-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build on FreeBSD 8.4 fails, sequence of #includes in src/networking.c (with patch) #100
Comments
|
@opsec Could you clarify the patch? It looks like it was only partially included. |
|
Ups, sorry, cut and paste with the textfield. You can find it here: I'm not yet familiar with the process to submit the patch directly to github (sorry). |
|
@opsec That patch is just moving the import lower? Is that actually affecting things? I'm happy to move the import if it matters but it seems like it wouldn't. |
|
Yes, it moves two includes below sys/types.h etc. Yes, it fixes the build on FreeBSD 8.4, where src/networking.c will not build otherwise. |
|
Cool, should be fixed! |
--- src/networking.c.orig 2015-01-14 05:12:08 UTC
+++ src/networking.c
@@ -1,9 +1,9 @@
#include <arpa/inet.h>
#include <fcntl.h>
-#include <netinet/in.h>
-#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
+#include <netinet/in.h>
+#include <netinet/tcp.h>
#include <sys/uio.h>
#include <syslog.h>
#include <unistd.h>
fixes it.
The text was updated successfully, but these errors were encountered: