r9483: Changed DIR to SMB_STRUCT_DIR because of the amazing stupidity of a UNIX vendor
[ab/samba.git/.git] / source3 / include / includes.h
index 6cab2525b00286f6aa3a0344ace8a4c7a8b8bb6c..c9208d2b2596d836c208548abb68d681af9bf116 100644 (file)
@@ -743,6 +743,18 @@ typedef int socklen_t;
 #  endif
 #endif
 
+/*
+ * Type for DIR structure.
+ */
+
+#ifndef SMB_STRUCT_DIR
+#  if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_STRUCT_DIR64)
+#    define SMB_STRUCT_DIR DIR64
+#  else
+#    define SMB_STRUCT_DIR DIR
+#  endif
+#endif
+
 /*
  * Defines for 64 bit fcntl locks.
  */