summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/sethostname.c
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-09-12 19:52:42 +0000
committerstefanf <stefanf@FreeBSD.org>2005-09-12 19:52:42 +0000
commitf9e069084cb5bb4b251bc75ad91b1ff1b165d2cc (patch)
tree1428eb76a25d0973a3f463b2d51dcd9733105399 /lib/libc/gen/sethostname.c
parent3e75d8f4fd2ce44a911bb6bb23fe8df8dc610d89 (diff)
downloadFreeBSD-src-f9e069084cb5bb4b251bc75ad91b1ff1b165d2cc.zip
FreeBSD-src-f9e069084cb5bb4b251bc75ad91b1ff1b165d2cc.tar.gz
Include a couple of headers to ensure consistency between the prototype and
the function definition.
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