From 3d5d32e294aae5115dd6f2989f4b88e3c589634f Mon Sep 17 00:00:00 2001 From: jbj Date: Sat, 11 Mar 2000 21:13:18 +0000 Subject: Red Hat 4.2 has not __set_errno. CVS patchset: 3624 CVS date: 2000/03/11 21:13:18 --- misc/glob.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'misc/glob.c') diff --git a/misc/glob.c b/misc/glob.c index 7ee40d2ea..ec60d110b 100644 --- a/misc/glob.c +++ b/misc/glob.c @@ -36,6 +36,14 @@ # define REAL_DIR_ENTRY(dp) (dp->d_ino != 0) #endif /* POSIX */ +#include +#ifndef errno +extern int errno; +#endif +#ifndef __set_errno +# define __set_errno(val) errno = (val) +#endif + /* Outcomment the following line for production quality code. */ /* #define NDEBUG 1 */ -- cgit v1.2.3