aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-03 13:45:25 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-03 13:45:25 +0100
commit8a749d44699853f1df894443065dbf794264c8fa (patch)
treeaa16d35decdd498b9db59d8d0d2a875734848b72 /src
parentf0725f2db0e34488f5f269cdb442c50458263cf6 (diff)
downloadblogc-8a749d44699853f1df894443065dbf794264c8fa.tar.gz
blogc-8a749d44699853f1df894443065dbf794264c8fa.tar.bz2
blogc-8a749d44699853f1df894443065dbf794264c8fa.zip
blogc: unistd.h wont provide gethostname
Diffstat (limited to 'src')
-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"