From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../files/scratchbox2-2.0-glibc-2.10.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 dev-embedded/scratchbox2/files/scratchbox2-2.0-glibc-2.10.patch (limited to 'dev-embedded/scratchbox2/files/scratchbox2-2.0-glibc-2.10.patch') diff --git a/dev-embedded/scratchbox2/files/scratchbox2-2.0-glibc-2.10.patch b/dev-embedded/scratchbox2/files/scratchbox2-2.0-glibc-2.10.patch new file mode 100644 index 000000000000..c5ec6aea4341 --- /dev/null +++ b/dev-embedded/scratchbox2/files/scratchbox2-2.0-glibc-2.10.patch @@ -0,0 +1,39 @@ +diff --git a/preload/interface.master b/preload/interface.master +index 55a9481..4ba22b2 100644 +--- a/preload/interface.master ++++ b/preload/interface.master +@@ -406,20 +406,34 @@ WRAP: int rmdir(const char *pathname) : \ + + #ifdef HAVE_SCANDIR + #ifdef HAVE_LINUX_SCANDIR ++#if _POSIX_C_SOURCE == 200809L ++WRAP: int scandir(const char *dir, struct dirent ***namelist, \ ++ SCANDIR_TYPE_ARG3, \ ++ int(*compar)(const struct dirent **, const struct dirent **)) : \ ++ map(dir) hardcode_param(3,filter) ++#else + WRAP: int scandir(const char *dir, struct dirent ***namelist, \ + SCANDIR_TYPE_ARG3, int(*compar)(const void *, const void *)) : \ + map(dir) hardcode_param(3,filter) + #endif ++#endif + #ifdef HAVE_OSX_SCANDIR + WRAP: int scandir(const char *dirname, struct dirent ***namelist, int (*select)(struct dirent *), int (*compar)(const void *, const void *)): map(dirname) + #endif + #endif + #ifdef HAVE_SCANDIR64 ++#if _POSIX_C_SOURCE == 200809L ++WRAP: int scandir64(const char *dir, struct dirent64 ***namelist, \ ++ int(*filter)(const struct dirent64 *), \ ++ int(*compar)(const struct dirent64 **, const struct dirent64 **)) : \ ++ map(dir) ++#else + WRAP: int scandir64(const char *dir, struct dirent64 ***namelist, \ + int(*filter)(const struct dirent64 *), \ + int(*compar)(const void *, const void *)) : \ + map(dir) + #endif ++#endif + #ifdef HAVE_SETXATTR + #ifdef HAVE_LINUX_XATTRS + WRAP: int setxattr(const char *path, const char *name, const void *value, \ -- cgit v1.2.3