Red Hat 4.2 has not __set_errno.

CVS patchset: 3624
CVS date: 2000/03/11 21:13:18
This commit is contained in:
jbj 2000-03-11 21:13:18 +00:00
parent 15432f9089
commit 3d5d32e294
1 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,14 @@
# define REAL_DIR_ENTRY(dp) (dp->d_ino != 0)
#endif /* POSIX */
#include <errno.h>
#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 */