🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1084

cpio & lseek decl

#1084
From: Karl Berry
Date: Wed, 11 Nov 1992 05:47
26 lines
1169 bytes
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'.  */
Technical Details
Message-ID: <199211111547.AA01486@claude.cs.umb.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!claude.cs.umb.edu!karl

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!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