# HG changeset patch # User komh # Date 1393156958 0 # Node ID 1471cf0a74f7e61d47af4ba93a40c49d34fa98a5 # Parent 630f03c82df3dc1b435dc145a6083cc89a2ada7a vcd: make high memory safe on OS/2 kLIBC DosDevIOCtl() is not high meory(-Zhigh-memory) safe. So allocate vcd structure in a low memory pool using a _lcalloc() on kLIBC. diff -r 630f03c82df3 -r 1471cf0a74f7 stream/vcd_read_os2.h --- a/stream/vcd_read_os2.h Sat Feb 22 21:35:54 2014 +0000 +++ b/stream/vcd_read_os2.h Sun Feb 23 12:02:38 2014 +0000 @@ -23,6 +23,11 @@ #ifndef MPLAYER_VCD_READ_OS2_H #define MPLAYER_VCD_READ_OS2_H +#ifdef __KLIBC__ +#include +#define calloc _lcalloc +#endif + #include "mp_msg.h" struct __attribute__((packed)) msf {