diff options
author | Stef Walter <stef@memberwebs.com> | 2009-03-26 17:30:49 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-03-26 17:30:49 +0000 |
commit | a292e665e7aa78cc8a9ad3569328e06917639c22 (patch) | |
tree | d72c357dd22926e9d8876f20ff1f16cacd281399 /common/compat.h | |
parent | 9e1de4e71db2c5b32bb8349584bafc22d6e29752 (diff) |
Support for building on Solaris.
Diffstat (limited to 'common/compat.h')
-rw-r--r-- | common/compat.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/common/compat.h b/common/compat.h index 712f385..0f58931 100644 --- a/common/compat.h +++ b/common/compat.h @@ -78,4 +78,28 @@ char* strlwr(char* s); char* strupr(char* s); #endif +#ifndef HAVE_DAEMON +int daemon(int nochdir, int noclose); +#endif + +#ifdef HAVE_ERR_H +#include <err.h> +#else +#include <stdarg.h> +void err_set_file(void *fp); +void err_set_exit(void (*ef)(int)); +void err(int eval, const char *fmt, ...); +void verr(int eval, const char *fmt, va_list ap); +void errc(int eval, int code, const char *fmt, ...); +void verrc(int eval, int code, const char *fmt, va_list ap); +void errx(int eval, const char *fmt, ...); +void verrx(int eval, const char *fmt, va_list ap); +void warn(const char *fmt, ...); +void vwarn(const char *fmt, va_list ap); +void warnc(int code, const char *fmt, ...); +void vwarnc(int code, const char *fmt, va_list ap); +void warnx(const char *fmt, ...); +void vwarnx(const char *fmt, va_list ap); +#endif + #endif /* _COMPAT_H_ */ |