From: Paul Eggert Date: Tue, 16 Sep 2014 19:26:48 +0000 (-0700) Subject: qsort_r: include X-Git-Tag: v1.0~7296 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=aa0c2b9e7aaa672785ff8e9edb1a4e2a1e763b6d;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index fbdc903046..58a6511784 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 a6c33eba7d..8dd4ff1d71 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