From 2e43736d542482a193de3db8daa8f9daaa1718eb Mon Sep 17 00:00:00 2001
From: Sergei Reznikov <diver@gelios.net>
Date: Tue, 22 May 2018 15:25:48 +0300
Subject: Fix build on Haiku


diff --git a/libmenu-cache/menu-cache.c b/libmenu-cache/menu-cache.c
index 5025d72..f688d47 100644
--- a/libmenu-cache/menu-cache.c
+++ b/libmenu-cache/menu-cache.c
@@ -35,7 +35,7 @@
 #include <time.h>
 #include <sys/socket.h>
 #include <sys/un.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
 #include <errno.h>
 #include <sys/wait.h>
 
diff --git a/menu-cache-daemon/Makefile.am b/menu-cache-daemon/Makefile.am
index 37f6f33..c32fdd9 100644
--- a/menu-cache-daemon/Makefile.am
+++ b/menu-cache-daemon/Makefile.am
@@ -18,6 +18,7 @@ menu_cached_SOURCES =		\
 
 menu_cached_LDADD = 		\
 	$(GLIB_LIBS)					\
+	-lnetwork					\
 	$(NULL)
 menu_cached_LDFLAGS =			\
 	-no-undefined				\
diff --git a/menu-cache-daemon/menu-cached.c b/menu-cache-daemon/menu-cached.c
index 69baee7..c126f2b 100644
--- a/menu-cache-daemon/menu-cached.c
+++ b/menu-cache-daemon/menu-cached.c
@@ -39,7 +39,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/un.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <string.h>
-- 
2.16.2

