Include stdlib.h so we have the prototype for realloc. This means that we don't

assume realloc returns an int. This causes problems...

This took me hours to find.

Ok matthieu@.
This commit is contained in:
oga 2008-06-10 21:24:16 +00:00
parent f80be2c38a
commit eb88ad3f01

View File

@ -48,6 +48,8 @@
* distinguishing each of the drafts. * distinguishing each of the drafts.
*/ */
#include <stdlib.h>
static int _Xthr_once_stub_(void *, void (*)(void)); static int _Xthr_once_stub_(void *, void (*)(void));
static int _Xthr_key_create_stub_(unsigned int *, void (*)(void *)); static int _Xthr_key_create_stub_(unsigned int *, void (*)(void *));
static int _Xthr_setspecific_stub_(unsigned int, const void *); static int _Xthr_setspecific_stub_(unsigned int, const void *);