s3: Fix the build on FreeBSD
authorVolker Lendecke <vl@samba.org>
Tue, 23 Aug 2011 22:36:35 +0000 (00:36 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 23 Aug 2011 21:01:07 +0000 (23:01 +0200)
lsasd.c uses basename(3), which according to susv3
requires libgen.h and without which the FreeBSD build breaks.

source3/rpc_server/lsasd.c

index 4469007308b950a74f4e1a77abb3413a0816404f..bf14b1ea581fbb4a574c98e0462a5a8160ef1a77 100644 (file)
@@ -23,6 +23,7 @@
 #include "serverid.h"
 #include "messages.h"
 #include "ntdomain.h"
+#include <libgen.h>
 
 #include "lib/id_cache.h"