diff options
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/db-merger.c | 21 | ||||
| -rw-r--r-- | src/tools/epona2anope.c | 21 | ||||
| -rw-r--r-- | src/tools/smtp.h | 12 |
3 files changed, 54 insertions, 0 deletions
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 |
