--- uuid.h.in.orig	2016-07-04 08:14:11.000000000 -0700
+++ uuid.h.in	2016-07-04 08:15:08.000000000 -0700
@@ -29,6 +29,8 @@
 
 #ifndef __UUID_H__
 #define __UUID_H__
+#define _UUID_UUID_H 
+#define _XOPEN_SOURCE 
 
 /* workaround conflicts with system headers */
 #define uuid_t       __vendor_uuid_t
@@ -36,6 +38,7 @@
 #define uuid_compare __vendor_uuid_compare
 #include <sys/types.h>
 #include <unistd.h>
+#include <malloc/malloc.h>
 #undef  uuid_t
 #undef  uuid_create
 #undef  uuid_compare
