diff options
author | Daniel Mack <zonque@users.sourceforge.net> | 2004-09-23 16:09:03 +0000 |
---|---|---|
committer | Daniel Mack <zonque@users.sourceforge.net> | 2004-09-23 16:09:03 +0000 |
commit | bea88d8cc810cba28c6408508404b187b2ea329a (patch) | |
tree | 4f846318161c1d070df47cd79482d2503657c710 /lib | |
parent | 9d14da63dfd03d633c04b6ba52ebbb0aaa11004b (diff) | |
download | xine-lib-bea88d8cc810cba28c6408508404b187b2ea329a.tar.gz xine-lib-bea88d8cc810cba28c6408508404b187b2ea329a.tar.bz2 |
fixed compilation on MacOSX
CVS patchset: 6995
CVS date: 2004/09/23 16:09:03
Diffstat (limited to 'lib')
-rw-r--r-- | lib/strndup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/strndup.c b/lib/strndup.c index f2caa70f2..1b9170d3d 100644 --- a/lib/strndup.c +++ b/lib/strndup.c @@ -1,6 +1,11 @@ #include "config.h" +#ifndef HOST_OS_DARWIN #include <malloc.h> +#else +#include <stdlib.h> +#endif + #include <string.h> char *_xine_private_strndup(const char *s, size_t n) { |