>From 70fc25e89c4fc8721a9633df01d774b6ec8775f2 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 16 Sep 2014 12:26:48 -0700 Subject: [PATCH] qsort_r: include Problem reported by Tom G. Christensen in: http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00071.html * lib/qsort.c [!_LIBC]: Include first. --- ChangeLog | 7 +++++++ lib/qsort.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index fbdc903..58a6511 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2014-09-16 Paul Eggert + + qsort_r: include + Problem reported by Tom G. Christensen in: + http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00071.html + * lib/qsort.c [!_LIBC]: Include first. + 2014-09-16 Dylan Cali avltree-list: avoid compiler warnings (trivial) diff --git a/lib/qsort.c b/lib/qsort.c index a6c33eb..8dd4ff1 100644 --- a/lib/qsort.c +++ b/lib/qsort.c @@ -20,6 +20,10 @@ Engineering a sort function; Jon Bentley and M. Douglas McIlroy; Software - Practice and Experience; Vol. 23 (11), 1249-1265, 1993. */ +#ifndef _LIBC +# include +#endif + #include #include #include -- 1.9.3