uuid plugin: only look in /sys on Linux
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 25 Dec 2015 09:53:41 +0000 (10:53 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 4 Aug 2016 09:21:09 +0000 (11:21 +0200)
src/uuid.c

index 446969a..223bfd5 100644 (file)
@@ -201,8 +201,10 @@ uuid_get_local(void)
     if ((uuid = uuid_get_from_dmidecode()) != NULL)
         return (uuid);
 
+#if defined(__linux__)
     if ((uuid = uuid_get_from_file("/sys/hypervisor/uuid")) != NULL)
         return (uuid);
+#endif
 
     return (NULL);
 }