summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/sethostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/sethostname.c')
-rw-r--r--lib/libc/gen/sethostname.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/gen/sethostname.c b/lib/libc/gen/sethostname.c
index 769401a..0acddbe 100644
--- a/lib/libc/gen/sethostname.c
+++ b/lib/libc/gen/sethostname.c
@@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/sysctl.h>
+#include <unistd.h>
+
int
sethostname(const char *name, int namelen)
{
OpenPOWER on IntegriCloud