🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #616

sys/types.h included multiple times when s-bsd4-2.h

#616
From: Allan Pratt
Date: Tue, 06 Feb 1990 21:08
24 lines
1367 bytes
I'm having trouble compiling nn patchlevel 10... I'm on s-bsd4-2.h
(which defines HAVE_MULTIGROUP), and sys/types.h is being included
twice: once outright in s-bsd4-2.h, and once by global.c, which
contains the following:

	#ifdef HAVE_MULTIGROUP
	#ifndef NGROUPS
	#include <sys/param.h>
	#endif
	...
	#endif

Unfortunately, my sys/param.h includes sys/types.h, which contains
typedefs and no guard against multiple inclusion.  Now, I could edit
sys/types.h, which I resist, or I could import NGROUPS into my config.h
or something (it's 8), or I could just forget about HAVE_MULTIGROUP in
s-bsd4-2.h.  I don't like any of these solutions, because they either
change what BSD distributes or what Kim Storm distributes.

Is there another alternative?

============================================
Opinions expressed above do not necessarily	-- Allan Pratt, Atari Corp.
reflect those of Atari Corp. or anyone else.	  ...ames!atari!apratt
Technical Details
Message-ID: <2025@atari.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!mailrus!umich!samsung!zaphod.mps.ohio-state.edu!usc!snorkelwacker!apple!portal!atari!apratt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!mailrus!umich!samsung!zaphod.mps.ohio-state.edu!usc!snorkelwacker!apple!portal!atari!apratt
From: apratt@atari.UUCP (Allan Pratt)
Newsgroups: news.software.nn
Subject: sys/types.h included multiple times when s-bsd4-2.h
Message-ID: <2025@atari.UUCP>
Date: 6 Feb 90 21:08:35 GMT
Organization: Atari Corp., Sunnyvale CA
Lines: 24