ctdb: Fix the build on FreeBSD
authorVolker Lendecke <vl@samba.org>
Wed, 18 Jan 2023 07:59:17 +0000 (08:59 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 18 Jan 2023 11:49:38 +0000 (11:49 +0000)
"basename" is define in libgen.h included from system/dir.h

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
ctdb/server/ctdb_mutex_fcntl_helper.c

index 84d3790db57cc5518739d52b071a237ef0ceae04..aac98eaeeadf8ebc02e9550161bb3a4c5aa079a1 100644 (file)
@@ -25,6 +25,7 @@
 #include "system/filesys.h"
 #include "system/network.h"
 #include "system/wait.h"
+#include "system/dir.h"
 
 #include <tevent.h>