From 6ba98a9f9f48e13738d9736cba9c45b5e94f42f2 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 14 Apr 2008 21:52:55 -0400 Subject: Initial import --- include/.svn/text-base/compat.h.svn-base | 83 ++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 include/.svn/text-base/compat.h.svn-base (limited to 'include/.svn/text-base/compat.h.svn-base') 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 +#include +#include +#include +#include + +#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 +#endif +#endif /* OS_SOLARIS */ + +#if OS_FREEBSD +#include + +#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 -- cgit v1.2.3