Patch so the ircd compiles, even when 'U_TYPES' are not defined
authorRemco Rijnders <remco@webconquest.com>
Wed, 20 Nov 2013 10:28:15 +0000 (11:28 +0100)
committerRemco Rijnders <remco@webconquest.com>
Wed, 20 Nov 2013 11:07:11 +0000 (12:07 +0100)
include/common.h
include/sys.h

index 35d28d0bd14e25804f3bcc3d1e266c019d2eda30..c29c2ac0cdab20bda1edcc66aae041340226640c 100644 (file)
@@ -21,6 +21,7 @@
 #define __common_include__
 
 #include <time.h>
+#include "sys.h"
 
 #ifdef HAVE_PARAM_H
 #include <sys/param.h>
index 5519cadda350cfc11af0efb5fe0d995e14cef96a..27e8d684b49707dcb79aa6153c52785175dd1ebb 100644 (file)
@@ -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;