[PATCH] Fix for Bug 10276

Christian Ambach ambi at samba.org
Tue Nov 19 14:04:01 MST 2013


Hi list,

the attached patch fixes Bug 10276 for the reporter.
Please review and push if it is okay.

Cheers,
Christian
-------------- next part --------------
>From 0afcd24fb7df93c2d3337ce7084d9bc9f8dc1a90 Mon Sep 17 00:00:00 2001
From: Christian Ambach <ambi at samba.org>
Date: Mon, 16 Sep 2013 11:32:47 +0200
Subject: [PATCH] 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 at samba.org>
---
 lib/util/samba_util.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h
index 243ed3e..f52347e 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,
-- 
1.8.1.2



More information about the samba-technical mailing list