diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-06-10 21:24:17 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-06-10 21:24:17 +0000 |
commit | 75c782feebd4948c4688987931125ea98ef4b0f8 (patch) | |
tree | 0905997345f6f647f60c8db6b8b685ba1baf1162 /lib/libX11 | |
parent | da3080031345b8701c9b9597d2fba4805dac9615 (diff) |
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@.
Diffstat (limited to 'lib/libX11')
-rw-r--r-- | lib/libX11/src/UIThrStubs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libX11/src/UIThrStubs.c b/lib/libX11/src/UIThrStubs.c index 8f9858c62..7f54aa9fe 100644 --- a/lib/libX11/src/UIThrStubs.c +++ b/lib/libX11/src/UIThrStubs.c @@ -48,6 +48,8 @@ * distinguishing each of the drafts. */ +#include <stdlib.h> + static int _Xthr_once_stub_(void *, void (*)(void)); static int _Xthr_key_create_stub_(unsigned int *, void (*)(void *)); static int _Xthr_setspecific_stub_(unsigned int, const void *); |