aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch')
-rw-r--r--meta-oe/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch54
1 files changed, 0 insertions, 54 deletions
diff --git a/meta-oe/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch b/meta-oe/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch
deleted file mode 100644
index 3300eb0241..0000000000
--- a/meta-oe/recipes-core/glib-2.0/glib-2.0/remove.test.for.qsort_r.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-while cross compiling we cannot execute run tests
-
-diff --git a/configure.ac b/configure.ac
-index 378b082..3f2a8d3 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -580,46 +580,7 @@ AC_FUNC_VPRINTF
- AC_FUNC_ALLOCA
- AC_CHECK_FUNCS(mmap posix_memalign memalign valloc fsync pipe2)
- AC_CHECK_FUNCS(atexit on_exit timegm gmtime_r)
--# BSD has a qsort_r with wrong argument order
--AC_CACHE_CHECK([for qsort_r], glib_cv_have_qsort_r, [
--AC_RUN_IFELSE([AC_LANG_SOURCE([[
--#define _GNU_SOURCE
--#include <stdlib.h>
--
--static int
--cmp (const void *a, const void *b, void *c)
--{
-- const int *ia = a;
-- const int *ib = b;
--
-- if (*ia < *ib)
-- return -1;
-- else if (*ia > *ib)
-- return 1;
-- else
-- return 0;
--}
--
--int
--main (int argc, char **argv)
--{
-- int arr[3] = { 1, 2, 0 };
-- int d = 3;
--
-- qsort_r (arr, 3, sizeof (int), cmp, &d);
--
-- if (arr[0] == 0 && arr[1] == 1 && arr[2] == 2)
-- return 0;
-- else
-- return 1;
--}]])],[glib_cv_have_qsort_r=yes],[glib_cv_have_qsort_r=no])])
--
--if test $glib_cv_have_qsort_r = yes ; then
-- AC_MSG_RESULT([yes])
-- AC_DEFINE(HAVE_QSORT_R, 1, [Define to 1 if you have the 'qsort_r' function])
--else
-- AC_MSG_RESULT([no])
--fi
-+AC_DEFINE(HAVE_QSORT_R, 1, [Define to 1 if you have the 'qsort_r' function])
-
- AC_CHECK_SIZEOF(char)
- AC_CHECK_SIZEOF(short)