diff options
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/daemon.c | 1 | ||||
-rw-r--r-- | lib/libc/gen/devname.c | 1 | ||||
-rw-r--r-- | lib/libc/gen/gethostname.c | 1 | ||||
-rw-r--r-- | lib/libc/gen/getosreldate.c | 2 | ||||
-rw-r--r-- | lib/libc/gen/getpagesize.c | 2 | ||||
-rw-r--r-- | lib/libc/gen/readdir.c | 1 | ||||
-rw-r--r-- | lib/libc/gen/sethostname.c | 2 | ||||
-rw-r--r-- | lib/libc/gen/strtofflags.c | 1 |
8 files changed, 11 insertions, 0 deletions
diff --git a/lib/libc/gen/daemon.c b/lib/libc/gen/daemon.c index 0158976..a0c0150 100644 --- a/lib/libc/gen/daemon.c +++ b/lib/libc/gen/daemon.c @@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$"); #include <errno.h> #include <fcntl.h> #include <paths.h> +#include <stdlib.h> #include <signal.h> #include <unistd.h> #include "un-namespace.h" diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c index ca0d6a9..0563180 100644 --- a/lib/libc/gen/devname.c +++ b/lib/libc/gen/devname.c @@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$"); #include <err.h> #include <fcntl.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <sys/param.h> #include <sys/stat.h> 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) diff --git a/lib/libc/gen/getosreldate.c b/lib/libc/gen/getosreldate.c index b0421a3..22c400d 100644 --- a/lib/libc/gen/getosreldate.c +++ b/lib/libc/gen/getosreldate.c @@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/sysctl.h> +#include <osreldate.h> + int getosreldate(void) { diff --git a/lib/libc/gen/getpagesize.c b/lib/libc/gen/getpagesize.c index 6963cfd..5e8e723 100644 --- a/lib/libc/gen/getpagesize.c +++ b/lib/libc/gen/getpagesize.c @@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/sysctl.h> +#include <unistd.h> + /* * This is unlikely to change over the running time of any * program, so we cache the result to save some syscalls. diff --git a/lib/libc/gen/readdir.c b/lib/libc/gen/readdir.c index 68d0ddd..20c2eb3 100644 --- a/lib/libc/gen/readdir.c +++ b/lib/libc/gen/readdir.c @@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$"); #include "un-namespace.h" #include "libc_private.h" +#include "telldir.h" /* * get next entry in a directory. 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) { diff --git a/lib/libc/gen/strtofflags.c b/lib/libc/gen/strtofflags.c index be54f6a..fee52af 100644 --- a/lib/libc/gen/strtofflags.c +++ b/lib/libc/gen/strtofflags.c @@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$"); #include <stddef.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> static struct { char *name; |