From: Remco Rijnders Date: Wed, 20 Nov 2013 10:28:15 +0000 (+0100) Subject: Patch so the ircd compiles, even when 'U_TYPES' are not defined X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=3bdcafb5f95e57436353ce019c9e042c7299fac9;p=serene-ircd.git Patch so the ircd compiles, even when 'U_TYPES' are not defined --- diff --git a/include/common.h b/include/common.h index 35d28d0..c29c2ac 100644 --- a/include/common.h +++ b/include/common.h @@ -21,6 +21,7 @@ #define __common_include__ #include +#include "sys.h" #ifdef HAVE_PARAM_H #include diff --git a/include/sys.h b/include/sys.h index 5519cad..27e8d68 100644 --- a/include/sys.h +++ b/include/sys.h @@ -187,15 +187,7 @@ extern char *rindex PROTO((char *, char)); extern VOIDSIG dummy(); -#ifdef DYNIXPTX -#define NO_U_TYPES -typedef unsigned short n_short; /* short as received from the net */ -typedef unsigned long n_long; /* long as received from the net */ -typedef unsigned long n_time; /* ms since 00:00 GMT, byte rev */ -#define _NETINET_IN_SYSTM_INCLUDED -#endif - -#ifdef NO_U_TYPES +#ifndef u_char typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned long u_long;