]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Fix the build on FreeBSD
authorVolker Lendecke <vl@samba.org>
Fri, 31 Aug 2018 04:25:30 +0000 (06:25 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 31 Aug 2018 16:42:31 +0000 (18:42 +0200)
FreeBSD needs to explicitly #include <unistd.h> for geteuid() and close()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Aug 31 18:42:31 CEST 2018 on sn-devel-144

lib/util/tests/util.c

index 10d475df62c0717c33d98f1411d661ef269e6b46..d5ed34dfcaa090137dd3621b7bde1ec3f0102db7 100644 (file)
@@ -22,6 +22,7 @@
 #include <fcntl.h>
 
 #include "replace.h"
+#include "system/filesys.h"
 
 #include "libcli/util/ntstatus.h"
 #include "torture/torture.h"