From olli@kiste.heim3.tu-clausthal.de Tue Sep 21 18:04:46 1999
Return-Path: <olli@kiste.heim3.tu-clausthal.de>
Received: from kiste.heim3.tu-clausthal.de (kiste.heim3.tu-clausthal.de [139.174.243.163])
	by hub.freebsd.org (Postfix) with ESMTP id 6ED1515440
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Sep 1999 18:04:29 -0700 (PDT)
	(envelope-from olli@kiste.heim3.tu-clausthal.de)
Received: (from root@localhost)
	by kiste.heim3.tu-clausthal.de (8.9.3/8.9.3) id DAA03385;
	Wed, 22 Sep 1999 03:04:28 +0200 (CEST)
	(envelope-from olli)
Message-Id: <199909220104.DAA03385@kiste.heim3.tu-clausthal.de>
Date: Wed, 22 Sep 1999 03:04:28 +0200 (CEST)
From: oliver.fromme@heim3.tu-clausthal.de
Sender: olli@kiste.heim3.tu-clausthal.de
Reply-To: oliver.fromme@heim3.tu-clausthal.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: net/trafshow broken (fix included!)
X-Send-Pr-Version: 3.2

>Number:         13888
>Category:       ports
>Synopsis:       net/trafshow broken (fix included!)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 21 18:10:00 PDT 1999
>Closed-Date:    Tue Sep 21 18:35:19 PDT 1999
>Last-Modified:  Tue Sep 21 18:35:56 PDT 1999
>Originator:     Oliver Fromme
>Release:        FreeBSD 4.0-19990918-CURRENT i386
>Organization:
Clausthal University of Technology, Computing Center
>Environment:

uname -a:
FreeBSD kiste.heim3.tu-clausthal.de 4.0-19990918-CURRENT
FreeBSD 4.0-19990918-CURRENT #1: Tue Sep 21 23:12:35 CEST 1999
olli@dao-lin-hay.heim3.tu-clausthal.de:/usr/src/sys/compile/KISTE  i386

>Description:

/usr/ports/net/trafshow does not compile, because it includes
<sys/socket.h> without also including <sys/types.h>.
The manpages clearly say that <sys/types.h> must be included.

>How-To-Repeat:

Try to compile the port.
It _did_ work at some time in the past (maybe socket.h
included types.h itself), but not on a recent -current.

>Fix:

Add this additional patch to the patches directory  of
the net/trafshow port (e.g. call it patch-ae).

--- trafshow/show.c.orig	Mon Jan 15 15:00:25 1996
+++ trafshow/show.c	Wed Sep 22 02:56:53 1999
@@ -18,6 +18,7 @@
 #include <curses.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/in_systm.h>

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Tue Sep 21 18:35:19 PDT 1999 
State-Changed-Why:  
This has been fixed.  See patch-ae that I committed on Sunday. 
>Unformatted:
