X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fuuid.c;h=069f0432753cb201afc4f72d72e9e34a18a119c2;hb=da612fa9c6a3343b43789569d64197d7c690be52;hp=2df6063984c04b09ebc6365a38144f33c61692f8;hpb=344be4992285313e8855c8114993b692ae08775e;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; }