[PATCH] Fix the FreeBSD build

Volker Lendecke Volker.Lendecke at SerNet.DE
Fri Aug 31 04:27:36 UTC 2018


Hi!

Review appreciated!

Thanks, Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de

Meet us at Storage Developer Conference (SDC)
Santa Clara, CA USA, September 24th-27th 2018
-------------- next part --------------
From 7991cbce641a8b3cd31a00cf8ed5eb62866bf8a3 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Fri, 31 Aug 2018 06:25:30 +0200
Subject: [PATCH] lib: Fix the build on FreeBSD

FreeBSD needs to explicitly #include <unistd.h> for geteuid() and close()

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 lib/util/tests/util.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/util/tests/util.c b/lib/util/tests/util.c
index 10d475df62c..d5ed34dfcaa 100644
--- a/lib/util/tests/util.c
+++ b/lib/util/tests/util.c
@@ -22,6 +22,7 @@
 #include <fcntl.h>
 
 #include "replace.h"
+#include "system/filesys.h"
 
 #include "libcli/util/ntstatus.h"
 #include "torture/torture.h"
-- 
2.11.0



More information about the samba-technical mailing list