Cygwin: Pass file paths instead of file descriptors over UNIX sockets
[lttng-ust.git] / liblttng-ust / lttng-ust-uuid.h
index 1027acbee9f67579839e39c4e3e1ee5f0c6b393e..418eb92081ed9c504bb10b3f4697686b1a3d8eda 100644 (file)
@@ -21,9 +21,9 @@
  */
 #define LTTNG_UST_UUID_STR_LEN         37
 
+#ifdef LTTNG_UST_HAVE_LIBUUID
 #include <uuid/uuid.h>
 
-#ifdef LTTNG_UST_HAVE_LIBUUID
 static inline
 int lttng_ust_uuid_generate(unsigned char *uuid_out)
 {
@@ -40,7 +40,7 @@ int lttng_ust_uuid_generate(unsigned char *uuid_out)
 {
        uint32_t status;
 
-       uuid_create(uuid_out, &status);
+       uuid_create((uuid_t *) uuid_out, &status);
        if (status == uuid_s_ok)
                return 0;
        else
This page took 0.024457 seconds and 4 git commands to generate.