From 0d9759b95a94f6138e5f5e51ffe90d9e72dca2ac Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Mon, 5 Dec 2016 09:50:11 +0100 Subject: [PATCH] zuuid.c : allow compilation on solaris/illumos --- src/zuuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zuuid.c b/src/zuuid.c index 0d26b1976..a2077b668 100644 --- a/src/zuuid.c +++ b/src/zuuid.c @@ -75,13 +75,13 @@ zuuid_new (void) byte buffer [ZUUID_LEN]; uuid_enc_be (&buffer, &uuid); zuuid_set (self, buffer); -#elif defined (__UTYPE_LINUX) || defined (__UTYPE_OSX) || defined (__UTYPE_GNU) +#elif defined (__UTYPE_LINUX) || defined (__UTYPE_OSX) || defined (__UTYPE_SUNOS) || defined (__UTYPE_SUNSOLARIS) || defined (__UTYPE_GNU) uuid_t uuid; assert (sizeof (uuid) == ZUUID_LEN); uuid_generate (uuid); zuuid_set (self, (byte *) uuid); #else -# error "Unknow UNIX TYPE" +# error "Unknown UNIX TYPE" #endif return self; }