$OpenBSD: patch-mplayer_c,v 1.10 2010/11/08 21:25:44 edd Exp $
--- mplayer.c.orig	Sun Oct 24 11:13:11 2010
+++ mplayer.c	Sun Oct 24 11:13:29 2010
@@ -852,7 +852,7 @@ static void exit_sighandler(int x){
           char spid[20];
           snprintf(spid, sizeof(spid), "%i", getppid());
           getch2_disable(); // allow terminal to work properly with gdb
-          if (execlp("gdb", "gdb", prog_path, spid, "-ex", "bt", NULL) == -1)
+          if (execlp("gdb", "gdb", prog_path, spid, "-ex", "bt", (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");
