Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Apr 2002 17:53:24 +0100 (BST)
From:      Gavin Atkinson <gavin@ury.york.ac.uk>
To:        Stephen Montgomery-Smith <stephen@math.missouri.edu>
Cc:        <freebsd-stable@FreeBSD.ORG>
Subject:   Re: IPPORT_USERRESERVED
Message-ID:  <Pine.BSF.4.33.0204271751410.75529-200000@ury.york.ac.uk>
In-Reply-To: <3CCABC17.5171A37F@math.missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

On Sat, 27 Apr 2002, Stephen Montgomery-Smith wrote:

> It seems that recently IPPORT_USERRESERVED is no longer defined in
> /usr/include/netinet/in.h.  This is a problem, because now the ports
> kdegames2 and kdegames3 do not build.  My guess is that it will affect
> other ports as well.

Yes - it also affects games/doom. I emailed the maintainer for the doom
port about a week ago with the attached patch, but have recieved no
response yet.

Gavin

[-- Attachment #2 --]
--- linuxdoom-1.10/i_net.c.orig	Wed Apr 17 12:03:04 2002
+++ linuxdoom-1.10/i_net.c	Tue Apr 23 19:14:39 2002
@@ -23,6 +23,7 @@
 static const char
 rcsid[] = "$Id: m_bbox.c,v 1.1 1997/02/03 22:45:10 b1 Exp $";
 
+#include <sys/types.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
@@ -51,6 +52,7 @@
 
 
 
+#if 0
 // For some odd reason...
 #define ntohl(x) \
         ((unsigned long int)((((unsigned long int)(x) & 0x000000ffU) << 24) | \
@@ -64,6 +66,7 @@
 	  
 #define htonl(x) ntohl(x)
 #define htons(x) ntohs(x)
+#endif
 
 void	NetSend (void);
 boolean NetListen (void);
@@ -73,7 +76,7 @@
 // NETWORKING
 //
 
-int	DOOMPORT =	(IPPORT_USERRESERVED +0x1d );
+int	DOOMPORT =	5029;
 
 int			sendsocket;
 int			insocket;

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0204271751410.75529-200000>