Messages in this thread | | | Date | Wed, 18 Nov 1998 09:06:33 +0000 (/usr/local/etc/localtime) | From | Paul <> | Subject | a ld_preload to get rvplayer working |
| |
An easy fix to get RealPlayer working with the development kernels is to compile this program as a shared library and LD_PRELOAD it before running rvplayer. What it does is turnes off the nonblocking bit for all open()s. Works for me using glibc 2.1
#define O_NONBLOCK 04000 extern int libc_open(const char *, int); int open(const char *pathname, int flags) { if (flags & O_NONBLOCK) flags &= ~O_NONBLOCK; return(__open(pathname, flags)); }
Compile it with "gcc -c open.c -o open.o ; ld -shared open.o -o open.so" Then run run rvplayer with "LD_PRELOAD=/path/open.so /path/rvplayer" Works for me anyway, and I don't have to reboot to listen to broadcasts.
Paul Laufer
BTW, that code isn't mine, I saw it on slashdot a while back . . .
> > > because real would never have fixed the bug until we changed the kernel, > > > they;ve had about 3 months notice. > > > > This reminds me of Microsoft's behavior. Just look at the > > programs that no longer works with winblows 98. > > This is a documented change, they've been told about it and it fixes a real > bug that hits other programs. So its a collection of correct programs versus > a buggy realaudio client - no contest
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |