From a41f38c2e4c899c57643a9521dfdc2abfd608711 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Tue, 17 May 2005 20:27:12 +0000 Subject: avoiding indent breakage git-svn-id: svn://svn.anope.org/anope/trunk@802 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@558 5417fbe8-f217-4b02-8779-1006273d7864 --- src/tools/db-merger.c | 21 +++++++++++++++++++++ src/tools/epona2anope.c | 21 +++++++++++++++++++++ src/tools/smtp.h | 12 ++++++++++++ 3 files changed, 54 insertions(+) (limited to 'src/tools') diff --git a/src/tools/db-merger.c b/src/tools/db-merger.c index 89ee72ea5..9116e9ac0 100644 --- a/src/tools/db-merger.c +++ b/src/tools/db-merger.c @@ -35,6 +35,27 @@ #include "sysconf.h" #endif +/* Some SUN fixs */ +#ifdef __sun +/* Solaris specific code, types that do not exist in Solaris' + * sys/types.h + **/ +#undef u_int8_t +#undef u_int16_t +#undef u_int32_t +#undef u_int_64_t +#define u_int8_t uint8_t +#define u_int16_t uint16_t +#define u_int32_t uint32_t +#define u_int64_t uint64_t + +#ifndef INADDR_NONE +#define INADDR_NONE (-1) +#endif + +#endif + + /* CONFIGURATION BLOCK */ #define NICK_DB_1 "nick1.db" diff --git a/src/tools/epona2anope.c b/src/tools/epona2anope.c index e88cae106..a48f2f785 100644 --- a/src/tools/epona2anope.c +++ b/src/tools/epona2anope.c @@ -35,6 +35,27 @@ #include "sysconf.h" #endif +/* Some SUN fixs */ +#ifdef __sun +/* Solaris specific code, types that do not exist in Solaris' + * * sys/types.h + * **/ +#undef u_int8_t +#undef u_int16_t +#undef u_int32_t +#undef u_int_64_t +#define u_int8_t uint8_t +#define u_int16_t uint16_t +#define u_int32_t uint32_t +#define u_int64_t uint64_t + +#ifndef INADDR_NONE +#define INADDR_NONE (-1) +#endif + +#endif + + /* CONFIGURATION BLOCK */ #define CHAN_DB_EPONA "chan1.db" diff --git a/src/tools/smtp.h b/src/tools/smtp.h index 7ffda89e8..b04fa98d8 100644 --- a/src/tools/smtp.h +++ b/src/tools/smtp.h @@ -67,6 +67,18 @@ extern int connect(int, struct sockaddr *, int); # endif #endif /* _AIX */ +/* Some SUN fixs */ +#ifdef __sun +/* Solaris specific code, types that do not exist in Solaris' + * * sys/types.h + * **/ +#ifndef INADDR_NONE +#define INADDR_NONE (-1) +#endif + +#endif + + #ifdef _WIN32 #define PATH_MAX MAX_PATH #define snprintf _snprintf -- cgit