home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.utils.bug
- Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!claude.cs.umb.edu!karl
- From: karl@claude.cs.umb.edu (Karl Berry)
- Subject: cpio & lseek decl
- Message-ID: <199211111547.AA01486@claude.cs.umb.edu>
- Sender: gnulists@ai.mit.edu
- Reply-To: karl@cs.umb.edu
- Organization: Gnus Not Usenet
- Distribution: gnu
- Date: Wed, 11 Nov 1992 05:47:43 GMT
- Approved: bug-gnu-utils@prep.ai.mit.edu
- Lines: 27
-
- cpio 2.1 doesn't compile on a Sun 3 running 3.5 using gcc 2.3.1, because
- it declares lseek in two different places -- system.h and rmt.c -- one
- hardwiring `long' and the other using `off_t'.
-
- I think it's better to use off_t in both places, so here is a diff to
- system.h.
-
- *** ./ORIG/system.h Sat Aug 22 14:51:15 1992
- --- ./system.h Sun Nov 8 20:38:58 1992
- ***************
- *** 42,48 ****
- #endif
-
- #ifndef _POSIX_VERSION
- ! long lseek ();
- #endif
-
- /* Since major is a function on SVR4, we can't use `ifndef major'. */
- --- 42,48 ----
- #endif
-
- #ifndef _POSIX_VERSION
- ! off_t lseek ();
- #endif
-
- /* Since major is a function on SVR4, we can't use `ifndef major'. */
-
-