🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Karl Berry Wed, 29 Jul 1992 12:37
fileutils: xgetcwd.c
#267
Author: 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"
  
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads