aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches/160-glob_use_getdents64.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-22 20:33:36 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-22 20:33:36 +0000
commit440fef816e81256780c36ac22c5218f525ccd5f5 (patch)
tree7027cf4a144bae1eafff2aa283c843757467becb /toolchain/uClibc/patches/160-glob_use_getdents64.patch
parentb1a1e39ed1883d301c3b2b0645a7fc028827814c (diff)
downloadupstream-440fef816e81256780c36ac22c5218f525ccd5f5.tar.gz
upstream-440fef816e81256780c36ac22c5218f525ccd5f5.tar.bz2
upstream-440fef816e81256780c36ac22c5218f525ccd5f5.zip
use getdents64 in the uClibc glob function
SVN-Revision: 5256
Diffstat (limited to 'toolchain/uClibc/patches/160-glob_use_getdents64.patch')
-rw-r--r--toolchain/uClibc/patches/160-glob_use_getdents64.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches/160-glob_use_getdents64.patch b/toolchain/uClibc/patches/160-glob_use_getdents64.patch
new file mode 100644
index 0000000000..f6e3e65920
--- /dev/null
+++ b/toolchain/uClibc/patches/160-glob_use_getdents64.patch
@@ -0,0 +1,12 @@
+diff -ur uClibc.old/libc/misc/glob/glob.c uClibc.dev/libc/misc/glob/glob.c
+--- uClibc.old/libc/misc/glob/glob.c 2005-01-12 08:59:21.000000000 +0100
++++ uClibc.dev/libc/misc/glob/glob.c 2006-10-22 22:30:29.000000000 +0200
+@@ -420,7 +420,7 @@
+ }
+ else
+ {
+- struct dirent *d = readdir ((DIR *) stream);
++ struct dirent64 *d = readdir64 ((DIR *) stream);
+ if (d == NULL)
+ break;
+ if (! (d->d_ino != 0))