From: Andy Eskilsson Newsgroups: comp.os.msdos.djgpp Subject: Missing: caddr_t when compiling dflat Date: 08 Feb 1998 12:09:55 +0100 Organization: Telelogic AB, Sweden Lines: 21 Sender: aes AT twilight Message-ID: Reply-To: andy DOT eskilsson AT telelogic DOT se NNTP-Posting-Host: twilight.telelogic.se Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I am trying to compile the dflat library ported to djgpp 1.x, and has got stuck on a missing declaration of some kind. It includes some malloc.c from Caltech 1982 (hmm do I really need that??) and there it tries to cast something through caddr_t, but this is undeclared.. Example: *(u_short *)((caddr_t)(op + 1) + op->ov_size) = RMAGIC; The malloc.c can be found at: http://www.fukt.hk-r.se/~flognat/malloc.c Well now comes the question, what would be apropriate to replace it with?? Hmm looking through the archives I found a notice saying that djgpp doesn't support functions that uses it?? Hmm what is caddr_t, and what should I do?? (Or rather whats the general adoption??) /Andy