r15053: fix portabilities issues between 32-bit winbind clients and a 64-bit winbindd...
[vlendec/samba-autobuild/.git] / source3 / include / includes.h
index b96bd19fd83dc2b33c8813b00837259b5037ddfb..1e59f50008d271cede9712178d43dbef8ea3b392 100644 (file)
@@ -638,6 +638,19 @@ typedef int socklen_t;
 #endif
 #endif
 
+/*
+ * check for 8 byte long long
+ */
+
+#if !defined(uint64)
+#if (SIZEOF_LONG == 8)
+#define uint64 unsigned long
+#elif (SIZEOF_LONG_LONG == 8)
+#define uint64 unsigned long long
+#endif /* don't lie.  If we don't have it, then don't use it */
+#endif
+
+
 /*
  * Types for devices, inodes and offsets.
  */