summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/smb_share_modes.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/include/smb_share_modes.h b/source3/include/smb_share_modes.h
index 5a79e171d5..f61ba624c6 100644
--- a/source3/include/smb_share_modes.h
+++ b/source3/include/smb_share_modes.h
@@ -25,7 +25,14 @@
extern "C" {
#endif
-#include <stdint.h>
+#if HAVE_INTTYPES_H
+# include <inttypes.h>
+#else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
+#endif
+
#include "tdb.h"
/* Database context handle. */