Code

fix daemon.c to compile on OpenBSD
authorRandal L. Schwartz <merlyn@stonehenge.com>
Tue, 25 Oct 2005 23:29:09 +0000 (16:29 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 26 Oct 2005 00:37:59 +0000 (17:37 -0700)
I can confirm that the following patch lets the current origin
compile on OpenBSD.  If you could apply this until you sort out the
rest of the namespace issue, I would be happy.  Thanks.

Signed-off-by: Junio C Hamano <junkio@cox.net>
daemon.c

index 0c6182fb93fce6937ecb2634462f7f6b0a835662..c3f86410d4fe392a2ced76b09e6af8ba8af534d5 100644 (file)
--- a/daemon.c
+++ b/daemon.c
@@ -1,5 +1,3 @@
-#include "cache.h"
-#include "pkt-line.h"
 #include <signal.h>
 #include <sys/wait.h>
 #include <sys/socket.h>
@@ -9,6 +7,8 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <syslog.h>
+#include "pkt-line.h"
+#include "cache.h"
 
 static int log_syslog;
 static int verbose;