openbsd-ports/x11/mplayer/patches/patch-mplayer_c
biorn f5271b838d Update to 1.0pre7
Don't depend on ogg/vorbis as it's built in now
Put fontconfig and freetype in WANTLIB and BUILD_DEPEND on pkgconfig if
 FLAVOR is not no_x11.
2005-05-09 12:24:38 +00:00

22 lines
942 B
Plaintext

$OpenBSD: patch-mplayer_c,v 1.2 2005/05/09 12:24:38 biorn Exp $
--- mplayer.c.orig Fri Apr 15 14:14:24 2005
+++ mplayer.c Wed Apr 20 06:35:55 2005
@@ -584,7 +584,7 @@ static void exit_sighandler(int x){
gdb_pid = fork();
mp_msg(MSGT_CPLAYER, MSGL_INFO, "Forked...\n");
if (gdb_pid == 0) { // We are the child
- if (execlp("gdb", "gdb", prog_path, spid, NULL) == -1)
+ if (execlp("gdb", "gdb", prog_path, spid, (char *)NULL) == -1)
mp_msg(MSGT_CPLAYER, MSGL_ERR, "Couldn't start gdb\n");
} else if (gdb_pid < 0)
mp_msg(MSGT_CPLAYER, MSGL_ERR, "Couldn't fork\n");
@@ -3500,7 +3500,7 @@ if (stream->type==STREAMTYPE_DVDNAV && d
case MP_CMD_RUN : {
#ifndef __MINGW32__
if(!fork()) {
- execl("/bin/sh","sh","-c",cmd->args[0].v.s,NULL);
+ execl("/bin/sh","sh","-c",cmd->args[0].v.s,(char *)NULL);
exit(0);
}
#endif