Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!saimiri.primate.wisc.edu!eng.ufl.edu!usenet.cis.ufl.edu!caen!uvaarpa!murdoch!hopper!mike From: mike@hopper.Virginia.EDU (Michael Chapman) Subject: Fix for /u/i/stdlib.h on NEWS-OS 4.1c Message-ID: <C6HK9L.3nq@murdoch.acc.Virginia.EDU> Sender: usenet@murdoch.acc.Virginia.EDU Organization: ITC/UVA Community Access UNIX/Internet Project Date: Tue, 4 May 1993 04:53:44 GMT Lines: 27 Sony seems to have made a mistake in stdlib.h - it doesn't check the proper define to keep from re-typedef'ing size_t (it checks with #ifndef _SIZE_T, but sys/types.h doesn't seem to define this, but _TYPES_ rather). At any rate, here's my modified section. Replace the old (in stdlib.h): #ifndef _SIZE_T #define _SIZE_T typedef long size_t; #endif with: #ifndef _SIZE_T #ifndef _TYPES_ #define _SIZE_T typedef long size_t; #endif #endif I hope this works, but I'm by no means an expert. It seems to have solved my problems with compiling. If this looks incorrect, someone please tell me. -- mike@hopper.acs.virginia.edu "I will NOT raise taxes on the middle class." -Unknown