فهرست منبع

use getdents64 in the uClibc glob function

SVN-Revision: 5256
Felix Fietkau 19 سال پیش
والد
کامیت
440fef816e
1فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 12 0
      toolchain/uClibc/patches/160-glob_use_getdents64.patch

+ 12 - 0
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))