diff options
author | Brian Cully <bjc@kublai.com> | 2008-04-14 21:52:55 -0400 |
---|---|---|
committer | Brian Cully <github.20.shmit@spamgourmet.com> | 2008-04-14 21:52:55 -0400 |
commit | 6ba98a9f9f48e13738d9736cba9c45b5e94f42f2 (patch) | |
tree | 86d7c281bcdbf67eb53cee064aa905e740ec5ccf /include/.svn/text-base/compat.h.svn-base | |
download | nastd-6ba98a9f9f48e13738d9736cba9c45b5e94f42f2.tar.gz nastd-6ba98a9f9f48e13738d9736cba9c45b5e94f42f2.zip |
Initial import
Diffstat (limited to 'include/.svn/text-base/compat.h.svn-base')
-rw-r--r-- | include/.svn/text-base/compat.h.svn-base | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/include/.svn/text-base/compat.h.svn-base b/include/.svn/text-base/compat.h.svn-base new file mode 100644 index 0000000..3d1e3e6 --- /dev/null +++ b/include/.svn/text-base/compat.h.svn-base @@ -0,0 +1,83 @@ +/* $Id: compat.h,v 1.4 2000/03/21 19:06:58 shmit Exp $ */ + +#ifndef COMPAT_H +# define COMPAT_H + +#include <netdb.h> +#include <syslog.h> +#include <sys/param.h> +#include <sys/types.h> +#include <netinet/in.h> + +#if __GNUC__ +#define RCSID(x) static const char rcsid[] __attribute__((__unused__)) = x +#else +#define RCSID(x) static const char rcsid[] = x +#endif + +#if OS_SOLARIS +#define NEED_SNPRINTF 1 +#define NEED_SHADOW 1 +#define NEED_CRYPT 1 +#define NEED_SETPROCTITLE 1 +#define NEED_STRINGS 1 + +#if SOLARIS_55 +#define NEED_CRYPT 1 +#include <pthread.h> +#endif +#endif /* OS_SOLARIS */ + +#if OS_FREEBSD +#include <libutil.h> + +#if FREEBSD_2 +typedef u_int32_t uint32_t; +#endif /* FREEBSD_2 */ +#endif /* OS_FREEBSD */ + +#if OS_LINUX +#define NEED_SETPROCTITLE 1 +#endif /* OS_LINUX */ + +#ifndef LOG_PERROR +#define LOG_PERROR 0 +#endif + +#ifndef IPPORT_HIFIRSTAUTO +#define IPPORT_HIFIRSTAUTO 49152 +#endif + +#ifndef IPPORT_HILASTAUTO +#define IPPORT_HILASTAUTO 65535 +#endif + +#ifndef MAXPATHLEN +#define MAXPATHLEN 1024 +#endif + +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 1024 +#endif + +#if NEED_SETPROCTITLE +void setproctitle(const char *fmt, ...); +#endif + +#if NEED_SNPRINTF +int snprintf(char *str, size_t size, const char *fmt, ...); +#endif + +#if NEED_MEMCPY +void *memcpy(void *dst, const void *src, size_t len); +#endif + +#if NEED_MEMSET +void *memcpy(void *dst, char c, size_t len); +#endif + +#if NEED_SETPROCTITLE +void setproctitle(const char *fmt, ...); +#endif + +#endif |