summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2016-12-01 12:12:47 +1100
committerVolker Lendecke <vl@samba.org>2016-12-01 18:08:54 +0100
commit88586570e8b469a3abfaa91dbeabc63596b53e3b (patch)
tree0cb4137f3d1c5d71efc766332813877eddfed1d0 /lib/replace
parentbde7d74c4a58535f05cbfff133e5a2d2b90e11d7 (diff)
downloadsamba-88586570e8b469a3abfaa91dbeabc63596b53e3b.tar.gz
replace: Include libgen.h if available
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Dec 1 18:08:54 CET 2016 on sn-devel-144
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/system/dir.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/replace/system/dir.h b/lib/replace/system/dir.h
index dec2d546492..0955b193958 100644
--- a/lib/replace/system/dir.h
+++ b/lib/replace/system/dir.h
@@ -46,6 +46,10 @@
#define mkdir(dir, mode) mkdir(dir)
#endif
+#if HAVE_LIBGEN_H
+# include <libgen.h>
+#endif
+
/* Test whether a file name is the "." or ".." directory entries.
* These really should be inline functions.
*/