__set_errno undefined in test/misc/tst-scandir.c

Tobias Poschwatta tp at fonz.de
Thu Oct 9 10:29:54 UTC 2008


make check (current trunk, ARM-OABI) fails compiling the scandir
testcase, because __set_errno is undefined.

As a simple fix, I copied the conditional define from
utils/chroot_realpath.c.

T.

--- uClibc/test/misc/tst-scandir.c.orig	2008-10-09 11:45:19.000000000 +0200
+++ uClibc/test/misc/tst-scandir.c	2008-10-09 12:02:19.000000000 +0200
@@ -1,6 +1,10 @@
 #include <dirent.h>
 #include <errno.h>
 
+#ifndef __set_errno
+#define __set_errno(val) ((errno) = (val))
+#endif
+
 int skip_all(const struct dirent *dirbuf)
 {
 	__set_errno(EBADF);




More information about the uClibc mailing list