- added autoconf check for uuid_t to compile under MacOS X
authorAlex Kalimulin <alex@netxms.org>
Thu, 3 Mar 2011 16:37:23 +0000 (16:37 +0000)
committerAlex Kalimulin <alex@netxms.org>
Thu, 3 Mar 2011 16:37:23 +0000 (16:37 +0000)
configure.ac
include/uuid.h

index e49bc7a..f3eba69 100644 (file)
@@ -954,7 +954,7 @@ AC_TYPE_SIGNAL
 AC_TYPE_SIZE_T
 AC_STRUCT_TIMEZONE
 
-AC_CHECK_TYPES([long long, unsigned long long, int64_t, uint64_t, u_int64_t])
+AC_CHECK_TYPES([long long, unsigned long long, int64_t, uint64_t, u_int64_t, uuid_t])
 AC_CHECK_TYPES([mode_t, off_t, socklen_t],,,[
 #if HAVE_SYS_TYPES_H
 #include <sys/types.h>
index c439788..bb5321c 100644 (file)
 
 #define UUID_LENGTH     16
 
+#if !HAVE_UUID_T
 #undef uuid_t
 typedef unsigned char uuid_t[16];
+#endif
 
 /* UUID Variant definitions */
 #define UUID_VARIANT_NCS         0