Mercurial > mplayer.hg
changeset 36805:1471cf0a74f7
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.
author | komh |
---|---|
date | Sun, 23 Feb 2014 12:02:38 +0000 |
parents | 630f03c82df3 |
children | c602dc916e07 |
files | stream/vcd_read_os2.h |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <emx/umalloc.h> +#define calloc _lcalloc +#endif + #include "mp_msg.h" struct __attribute__((packed)) msf {