projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build fix: macOS Sierra provides clock_gettime
[lttng-tools.git]
/
src
/
common
/
compat
/
uuid.h
diff --git
a/src/common/compat/uuid.h
b/src/common/compat/uuid.h
index 5bf8beb406f0b018dd40bb25959c7b8018f610c6..4a71f16c8af1cbb6a5d3d8dd46e470f5f861329d 100644
(file)
--- a/
src/common/compat/uuid.h
+++ b/
src/common/compat/uuid.h
@@
-23,15
+23,18
@@
#ifndef LTTNG_UUID_H
#define LTTNG_UUID_H
#ifndef LTTNG_UUID_H
#define LTTNG_UUID_H
-#include <config.h>
/*
* Includes final \0.
*/
#define UUID_STR_LEN 37
/*
* Includes final \0.
*/
#define UUID_STR_LEN 37
+#define UUID_LEN 16
#ifdef LTTNG_HAVE_LIBUUID
#include <uuid/uuid.h>
#ifdef LTTNG_HAVE_LIBUUID
#include <uuid/uuid.h>
+/*
+ * uuid_out is of len UUID_LEN.
+ */
static inline
int lttng_uuid_generate(unsigned char *uuid_out)
{
static inline
int lttng_uuid_generate(unsigned char *uuid_out)
{
@@
-43,6
+46,9
@@
int lttng_uuid_generate(unsigned char *uuid_out)
#include <uuid.h>
#include <stdint.h>
#include <uuid.h>
#include <stdint.h>
+/*
+ * uuid_out is of len UUID_LEN.
+ */
static inline
int lttng_uuid_generate(unsigned char *uuid_out)
{
static inline
int lttng_uuid_generate(unsigned char *uuid_out)
{
This page took
0.025951 seconds
and
4
git commands to generate.