diff options
author | Christian Ambach <ambi@samba.org> | 2013-11-18 20:02:41 +0100 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2013-11-21 22:12:45 +0100 |
commit | 4ea92841b72a7b701a7c0fadf63430a7d0a3fac8 (patch) | |
tree | c25a878ccc36b2d82e098597da8ce475e275ffae /lib/util | |
parent | addabf151377c8c0ab75fb591bc85d8ea5c8acfa (diff) | |
download | samba-4ea92841b72a7b701a7c0fadf63430a7d0a3fac8.tar.gz samba-4ea92841b72a7b701a7c0fadf63430a7d0a3fac8.tar.xz samba-4ea92841b72a7b701a7c0fadf63430a7d0a3fac8.zip |
lib/util: use proper include for struct stat
use <sys/stat.h> instead of forward declaring it
This fixes the build on AIX
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10276
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Thu Nov 21 22:12:45 CET 2013 on sn-devel-104
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/samba_util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h index 243ed3e50da..f52347e5363 100644 --- a/lib/util/samba_util.h +++ b/lib/util/samba_util.h @@ -27,6 +27,9 @@ /* for TALLOC_CTX */ #include <talloc.h> +/* for struct stat */ +#include <sys/stat.h> + /** * @file * @brief Helpful macros @@ -627,7 +630,6 @@ _PUBLIC_ bool directory_exist(const char *dname); /** Check file permissions. **/ -struct stat; _PUBLIC_ bool file_check_permissions(const char *fname, uid_t uid, mode_t file_perms, |