X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fuuid.c;h=069f0432753cb201afc4f72d72e9e34a18a119c2;hb=5b4053d27b6a24e2f18e678f0d8c3343b7dfad7c;hp=2df6063984c04b09ebc6365a38144f33c61692f8;hpb=5b7a7ff99f191d419cf19df001b81d123c93783f;p=collectd.git diff --git a/src/uuid.c b/src/uuid.c index 2df60639..069f0432 100644 --- a/src/uuid.c +++ b/src/uuid.c @@ -24,11 +24,12 @@ **/ #include "collectd.h" + #include "common.h" #include "configfile.h" #include "plugin.h" -#if HAVE_LIBHAL +#if HAVE_LIBHAL_H #include #endif @@ -100,14 +101,14 @@ uuid_get_from_dmidecode(void) if (!dmidecode) { return NULL; } - + uuid = uuid_parse_dmidecode(dmidecode); pclose(dmidecode); return uuid; } -#if HAVE_LIBHAL +#if HAVE_LIBHAL_H #define UUID_PATH "/org/freedesktop/Hal/devices/computer" #define UUID_PROPERTY "smbios.system.uuid" @@ -199,7 +200,7 @@ uuid_get_local(void) return uuid; } -#if HAVE_LIBHAL +#if HAVE_LIBHAL_H if ((uuid = uuid_get_from_hal()) != NULL) { return uuid; }