aboutsummaryrefslogtreecommitdiff
path: root/libntp/numtohost.c
diff options
context:
space:
mode:
Diffstat (limited to 'libntp/numtohost.c')
-rw-r--r--libntp/numtohost.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libntp/numtohost.c b/libntp/numtohost.c
index dd51c5d01313..b3d458ee0613 100644
--- a/libntp/numtohost.c
+++ b/libntp/numtohost.c
@@ -1,6 +1,12 @@
/*
* numtohost - convert network number to host name.
*/
+#include <config.h>
+
+#include <sys/types.h>
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h> /* ntohl */
+#endif
#include "ntp_fp.h"
#include "ntp_stdlib.h"