🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #267

fileutils: xgetcwd.c

#267
From: Karl Berry
Date: Wed, 29 Jul 1992 12:37
24 lines
1110 bytes
In fileutils 3.3, lib/xgetcwd.c does not compile on my IBM RT running
4.3 BSD, since <errno.h> does not declare `errno'.

Here is a diff.  This is the way rms once suggested errno be declared.

Sat Jul 25 11:34:50 1992  Karl Berry  (karl@fosse)

        * xgetcwd.c (errno) [!errno]: declare as int, for the benefit of
          those systems (e.g., 4.3 BSD) which do not declare it in <errno.h>.

*** ./ORIG/xgetcwd.c	Mon Jul 13 21:37:16 1992
--- ./xgetcwd.c	Sat Jul 25 11:30:09 1992
***************
*** 19,24 ****
--- 19,27 ----
  
  #include <stdio.h>
  #include <errno.h>
+ #ifndef errno
+ extern int errno;
+ #endif
  #include <sys/types.h>
  #include "pathmax.h"
  
Technical Details
Message-ID: <199207292037.AA17268@claude.cs.umb.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!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!cis.ohio-state.edu!claude.cs.umb.edu!karl
From: karl@claude.cs.umb.edu (Karl Berry)
Subject: fileutils: xgetcwd.c
Message-ID: <199207292037.AA17268@claude.cs.umb.edu>
Sender: gnulists@ai.mit.edu
Reply-To: karl@cs.umb.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 29 Jul 1992 12:37:22 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 25