aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc/sysinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc/sysinfo.h')
-rw-r--r--src/blogc/sysinfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blogc/sysinfo.h b/src/blogc/sysinfo.h
index 51640e0..0104911 100644
--- a/src/blogc/sysinfo.h
+++ b/src/blogc/sysinfo.h
@@ -14,7 +14,9 @@
#endif /* HAVE_CONFIG_H */
#ifdef HAVE_UNISTD_H
+#ifdef HAVE_GETHOSTNAME
#define HAVE_SYSINFO_HOSTNAME 1
+#endif /* HAVE_GETHOSTNAME */
#endif /* HAVE_UNISTD_H */
#include "../common/utils.h"