Path: utzoo!attcan!uunet!mailrus!cs.utexas.edu!rice!sun-spots-request From: guy@auspex.com (Guy Harris) Newsgroups: comp.sys.sun Subject: Re: USENET Vers. B.11 on SunOS4.1 Keywords: Software Message-ID: <9396@brazos.Rice.edu> Date: 27 Jun 90 18:12:03 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 26 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n236 X-Sun-Spots-Digest: Volume 9, Issue 236, message 15 >I looked at /usr/include/unistd.h on both systems and found that they were >different: Yup, POSIX specifies that "sleep()" be declared in (see p. 43 of the POSIX spec, paying special attention to "If a function is not listed below, it shall have its prototype appear in ..."), and also specifies that it have type "unsigned int". >I assumed the source I had was outdated so recieved a new copy from the >info server at ic.soc.src. Nope. SunOS 4.1 is probably new enough that 2.11 probably hasn't been updated to compile under 4.1. >So now I'm stuck...... We want this software working before we move comms >over to this new machine and upgrade the others to OS4.1. > >Any ideas????? Yes, try putting a declaration unsigned sleep(); right after, say, the "long lseek();" declaration in "ifuncs.c". If the same problem shows up in other files, you'll need to do the same sort of thing there.