Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!att!princeton!udel!rochester!cornell!uw-beaver!milton!ogicse!pdxgate!parsely!percy!percival.rain.com!nerd From: nerd@percival.rain.com (Michael Galassi) Newsgroups: comp.sys.next Subject: Include files munged (solution) Keywords: dbm.h smail3.1.20 Message-ID: <1991Mar15.171216.1292@percy.rain.com> Date: 15 Mar 91 17:12:16 GMT Sender: @percy.rain.com Organization: Percy's UNIX, Portland, OR Lines: 27 Originator: nerd@percival.rain.com Nntp-Posting-Host: percival.rain.com ***(NeXT: Read carefuly and fix this in 2.1)*** In the process of getting smail3.1.20 running on my 2.0 cube I ran into a problem with the include file /usr/include/dbm.h as described below. Fortunately after fixing the dbm file and making a few small changes I succeded and now am rid of NeXT's broken version of sendmail. Smail realy works well. The line: datum fetch(char *file); must be changed to read: datum fetch(datum key); for the declaration to match the function in libdbm.a. NeXT also botched the declarations for the store and delete functions in the same file. As distributed they read: void store (datum key, datum content); void delete (datum key); when in reality they return a status and should be: int store (datum key, datum content); int delete (datum key); I wrote a baby test program to verify that next had not screwed up the library and then massaged the include file to match. Fortunately the library code is correct. -- Michael Galassi | nerd@percy.rain.com MS-DOS: The ultimate PC virus. | ...!tektronix!percy!nerd