src/platform_unix.h
branchkeysync
changeset 948 2c689b7707a9
parent 926 95247f30b919
child 949 779219e99833
     1.1 --- a/src/platform_unix.h	Sun Jul 31 00:24:15 2016 +0200
     1.2 +++ b/src/platform_unix.h	Sun Jul 31 09:01:39 2016 +0200
     1.3 @@ -5,6 +5,7 @@
     1.4  #include <unistd.h>
     1.5  #include <strings.h>
     1.6  #include <sys/select.h>
     1.7 +#include <uuid/uuid.h>
     1.8  
     1.9  #ifdef __cplusplus
    1.10  extern "C" {
    1.11 @@ -45,6 +46,15 @@
    1.12  size_t strlcat(char* dst, const	char* src, size_t size);
    1.13  #endif
    1.14  
    1.15 +#ifndef _UUID_STRING_T
    1.16 +#define _UUID_STRING_T
    1.17 +typedef char uuid_string_t[37];
    1.18 +#endif
    1.19 +#ifdef UUID
    1.20 +// on *nix, uuid_t is an array and already implements pointer semantics
    1.21 +#define UUID uuid_t
    1.22 +#endif
    1.23 +
    1.24  #ifdef __cplusplus
    1.25  }
    1.26  #endif