summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-03-11 21:13:18 +0000
committerjbj <devnull@localhost>2000-03-11 21:13:18 +0000
commit3d5d32e294aae5115dd6f2989f4b88e3c589634f (patch)
tree868c8c086ae4b1ebd7a4bfb7ff4d4c4dbfae6699 /misc
parent15432f908996c74cebb6d9e0409f922794528950 (diff)
downloadlibrpm-tizen-3d5d32e294aae5115dd6f2989f4b88e3c589634f.tar.gz
librpm-tizen-3d5d32e294aae5115dd6f2989f4b88e3c589634f.tar.bz2
librpm-tizen-3d5d32e294aae5115dd6f2989f4b88e3c589634f.zip
Red Hat 4.2 has not __set_errno.
CVS patchset: 3624 CVS date: 2000/03/11 21:13:18
Diffstat (limited to 'misc')
-rw-r--r--misc/glob.c8
1 files changed, 8 insertions, 0 deletions
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 <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 */