From a55202787df1d5cfd3e37cb4c021422ee4aa9530 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 21 Jan 2024 19:03:45 -0700 Subject: * Clean up some function definitions to comply with strict prototypes. Suggested and worked in part by Holger Hoffstätte. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pico/browse.c | 2 ++ pico/fileio.c | 2 ++ pico/osdep/filesys.c | 2 ++ 3 files changed, 6 insertions(+) (limited to 'pico') diff --git a/pico/browse.c b/pico/browse.c index 08054e37..c762742d 100644 --- a/pico/browse.c +++ b/pico/browse.c @@ -47,8 +47,10 @@ #ifndef _WINDOWS #if defined(bsd) || defined(lnx) +#ifndef errno extern int errno; #endif +#endif /* diff --git a/pico/fileio.c b/pico/fileio.c index 2847a2d9..236be932 100644 --- a/pico/fileio.c +++ b/pico/fileio.c @@ -24,8 +24,10 @@ #if defined(bsd) || defined(lnx) +#ifndef errno extern int errno; #endif +#endif diff --git a/pico/osdep/filesys.c b/pico/osdep/filesys.c index 75cb91ff..05be5fae 100644 --- a/pico/osdep/filesys.c +++ b/pico/osdep/filesys.c @@ -783,7 +783,9 @@ copy(char *a, char *b) char *cb; struct stat tsb, fsb; EML eml; +#ifndef errno extern int errno; +#endif if(our_stat(a, &fsb) < 0){ /* get source file info */ eml.s = errstr(errno); -- cgit v1.2.3-54-g00ecf