From 10495f34f846bac66d43d6a294f0e1e2ea89cd76 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Sun, 6 Jan 2019 09:45:46 -0800 Subject: Added libuuid for generating UUIDs. --- configure.ac | 2 ++ test/json_vol_connector.c | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index cc47c22..12155e5 100644 --- a/configure.ac +++ b/configure.ac @@ -1027,6 +1027,7 @@ esac ## AC_CHECK_LIB([m], [ceil]) AC_CHECK_LIB([dl], [dlopen]) +AC_CHECK_LIB([uuid], [uuid_generate]) ## ---------------------------------------------------------------------- ## Check for system header files. @@ -1041,6 +1042,7 @@ AC_CHECK_HEADERS([stddef.h setjmp.h features.h]) AC_CHECK_HEADERS([dirent.h]) AC_CHECK_HEADERS([stdint.h], [C9x=yes]) AC_CHECK_HEADERS([stdbool.h]) +AC_CHECK_HEADERS([uuid/uuid.h]) ## Darwin AC_CHECK_HEADERS([mach/mach_time.h]) diff --git a/test/json_vol_connector.c b/test/json_vol_connector.c index 17dcfd2..f0f8633 100644 --- a/test/json_vol_connector.c +++ b/test/json_vol_connector.c @@ -27,9 +27,16 @@ #include "json_vol_connector.h" +/* XXX: Note that we're going to have to guard most of the JSON VOL + * connector content with #ifdefs in the final product... + */ + /* The Jansson JSON parser */ #include +/* libuuid for generating UUIDs */ +#include + /* Callbacks */ /* File */ static void *jvc_file_create(const char *name, unsigned flags, hid_t fcpl_id, hid_t fapl_id, hid_t dxpl_id, void **req); -- cgit v0.12