diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-07-15 02:56:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-07-15 02:56:15 +0000 |
commit | fa53e32d7ef76a81d846adf05f0498a9c2ab2f37 (patch) | |
tree | 1b81d8dc9fdf3cdcd42fd90ba99e9af70d8249ee | |
parent | 5b0ee4f0382580090fc43e80b8a95ff24e78c623 (diff) |
protos
-rw-r--r-- | lib/libc/compat-43/gethostid.c | 3 | ||||
-rw-r--r-- | lib/libc/dlfcn/dlfcn_stubs.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/compat-43/gethostid.c b/lib/libc/compat-43/gethostid.c index e528e3432d1..079ca83c161 100644 --- a/lib/libc/compat-43/gethostid.c +++ b/lib/libc/compat-43/gethostid.c @@ -28,11 +28,12 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: gethostid.c,v 1.5 2003/06/02 20:18:33 millert Exp $"; +static char *rcsid = "$OpenBSD: gethostid.c,v 1.6 2003/07/15 02:56:14 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> #include <sys/sysctl.h> +#include <unistd.h> long gethostid(void) diff --git a/lib/libc/dlfcn/dlfcn_stubs.c b/lib/libc/dlfcn/dlfcn_stubs.c index 7eac453bcdf..9891498b33d 100644 --- a/lib/libc/dlfcn/dlfcn_stubs.c +++ b/lib/libc/dlfcn/dlfcn_stubs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dlfcn_stubs.c,v 1.6 2003/06/11 21:03:10 deraadt Exp $ */ +/* $OpenBSD: dlfcn_stubs.c,v 1.7 2003/07/15 02:56:14 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -38,7 +38,7 @@ void *dlopen(const char *libname, int how) __attribute__((weak)); int dlclose(void *handle) __attribute__((weak)); void *dlsym(void *handle, const char *name) __attribute__((weak)); int dlctl(void *handle, int command, void *data) __attribute__((weak)); -const char * dlerror() __attribute__((weak)); +const char * dlerror(void) __attribute__((weak)); #include <stdio.h> |