Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
b6971a73
Commit
b6971a73
authored
Jan 12, 2017
by
Uwe Schulzweida
Browse files
cdiCreateUUID: check for uuid.h.
parent
ae2b8f30
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util.c
View file @
b6971a73
...
...
@@ -151,7 +151,7 @@ char* cdiUnescapeSpaces(const char* string, const char** outStringEnd)
return
result
;
}
#ifdef
HAVE_DECL_UUID_GENERATE
#if
def
ined (
HAVE_DECL_UUID_GENERATE
) && defined (HAVE_UUID_UUID_H)
#include
<sys/time.h>
#include
<uuid/uuid.h>
void
cdiCreateUUID
(
unsigned
char
*
uuid
)
...
...
@@ -178,7 +178,7 @@ void cdiCreateUUID(unsigned char *uuid)
uuid_generate
(
uuid
);
setstate
(
caller_rand_state
);
}
#elif defined (HAVE_DECL_UUID_CREATE)
#elif defined (HAVE_DECL_UUID_CREATE)
&& defined (HAVE_UUID_H)
typedef
uint8_t
u_int8_t
;
typedef
uint16_t
u_int16_t
;
typedef
uint32_t
u_int32_t
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment