Skip to content

Commit af4ba64

Browse files
add missing header
1 parent c486f29 commit af4ba64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code/logic/hostinfo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
#include <sys/utsname.h>
2828
#include <sys/sysinfo.h>
2929
#include <sys/types.h>
30-
#include <unistd.h> // for gethostname
30+
#include <unistd.h>
31+
#include <netdb.h> // for gethostname
3132
#endif
3233

3334
int fossil_sys_hostinfo_get_system(fossil_sys_hostinfo_system_t *info) {

0 commit comments

Comments
 (0)