diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-09-12 19:52:42 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-09-12 19:52:42 +0000 |
commit | f9e069084cb5bb4b251bc75ad91b1ff1b165d2cc (patch) | |
tree | 1428eb76a25d0973a3f463b2d51dcd9733105399 /lib/libc/gen/gethostname.c | |
parent | 3e75d8f4fd2ce44a911bb6bb23fe8df8dc610d89 (diff) | |
download | FreeBSD-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/gethostname.c')
-rw-r--r-- | lib/libc/gen/gethostname.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/gethostname.c b/lib/libc/gen/gethostname.c index acc3386..fa22c11 100644 --- a/lib/libc/gen/gethostname.c +++ b/lib/libc/gen/gethostname.c @@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$"); #include <sys/sysctl.h> #include <errno.h> +#include <unistd.h> int gethostname(name, namelen) |