Subject: Build errors w/FIX - usr.bin/kdump
To: current-users <current-users@NetBSD.ORG>
From: Paul R. Goyette <paul@pgoyette.bdt.com>
List: current-users
Date: 06/07/1995 16:21:36
OK, this has probably already been caught, but since last night's SUP 
update failed, here's the info:

make of usr.bin/kdump fails with the following error:

	cc -O -I/usr/local/netbsd-cur/src/usr.bin/kdump/../ktrace   -c ioctl.c
	ioctl.c: In function `ioctlname':
	ioctl.c:43: sizeof applied to an incomplete type
	ioctl.c:77: sizeof applied to an incomplete type
	*** Error code 1

	Stop.

This is easily remedied by adding a couple more includes to sys/sockio.h 
which is where the error originates:

	*** sockio.h.orig	Thu Jun  1 03:15:14 1995
	--- sockio.h	Wed Jun  7 16:14:56 1995
	***************
	*** 39,44 ****
	--- 39,46 ----
	  #define	_SYS_SOCKIO_H_
  
	  #include <sys/ioccom.h>
	+ #include <netinet/in.h>
	+ #include <netinet/ip_mroute.h>
  
	  /* Socket ioctl's. */
	  #define	SIOCSHIWAT	 _IOW('s',  0, int)		/* set high watermark */


--------------------------------------------------------------------
| Paul Goyette            | Key available via finger or key server |
| Paul@pgoyette.bdt.com   | Fingerprint: 0E 40 D2 FC 2A 13 74 A0   |
|                         |              E4 69 D5 BE 65 E4 56 C6   |
--------------------------------------------------------------------