diff options
Diffstat (limited to 'libglusterfs/src')
-rw-r--r-- | libglusterfs/src/Makefile.am | 11 | ||||
-rw-r--r-- | libglusterfs/src/compat-uuid.h | 8 |
2 files changed, 4 insertions, 15 deletions
diff --git a/libglusterfs/src/Makefile.am b/libglusterfs/src/Makefile.am index bfe0900e547..c7cd3d5e6fc 100644 --- a/libglusterfs/src/Makefile.am +++ b/libglusterfs/src/Makefile.am @@ -71,17 +71,6 @@ noinst_HEADERS = unittest/unittest.h \ $(CONTRIBDIR)/xxhash/xxhash.h \ tier-ctr-interface.h -if !HAVE_LIBUUID -# FIXME: unbundle libuuid, see compat-uuid.h. -libglusterfs_la_SOURCES += $(CONTRIBDIR)/uuid/clear.c \ - $(CONTRIBDIR)/uuid/copy.c $(CONTRIBDIR)/uuid/gen_uuid.c \ - $(CONTRIBDIR)/uuid/pack.c $(CONTRIBDIR)/uuid/parse.c \ - $(CONTRIBDIR)/uuid/unparse.c $(CONTRIBDIR)/uuid/uuid_time.c \ - $(CONTRIBDIR)/uuid/compare.c $(CONTRIBDIR)/uuid/isnull.c \ - $(CONTRIBDIR)/uuid/unpack.c -endif - - eventtypes.h: $(top_srcdir)/events/eventskeygen.py $(PYTHON) $(top_srcdir)/events/eventskeygen.py C_HEADER diff --git a/libglusterfs/src/compat-uuid.h b/libglusterfs/src/compat-uuid.h index 8dac6990388..2e66117ce1f 100644 --- a/libglusterfs/src/compat-uuid.h +++ b/libglusterfs/src/compat-uuid.h @@ -57,6 +57,10 @@ gf_uuid_unparse (const uuid_t uuid, char *out) uuid_unparse (uuid, out); } +#elif defined(__FreeBSD__) + +#error Please install e2fsprogs-libuuid for a compatible libuuid implementation. + /* TODO: add more uuid APIs, use constructs like this: #elif defined(__NetBSD__) * NetBSD libc * @@ -70,9 +74,5 @@ gf_uuid_clear (uuid_t uuid) */ -#else /* use bundled Linux like libuuid from contrib/uuid/ */ - -#include "uuid.h" - #endif /* HAVE_UUID */ #endif /* _GF_UUID_H */ |