aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin_i2c_sensors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin_i2c_sensors.c b/plugin_i2c_sensors.c
index 6092cbf..47d080e 100644
--- a/plugin_i2c_sensors.c
+++ b/plugin_i2c_sensors.c
@@ -188,7 +188,7 @@ static int parse_i2c_sensors_procfs(const char *key)
return -1;
}
-#ifndef __MAX_OS_X_VERSION_10_3
+#ifndef __MAC_OS_X_VERSION_10_3
running = strndup(buffer, sizeof(buffer));
#else
// there is no strndup in OSX