[MPlayer-dev-eng] Compilation error - SIGHUP and SIGPIPE [PATCH]

Sergey Khlutchin Sergey.Khlutchin at gmail.com
Fri Jul 22 19:59:20 CEST 2005


Robert Swain wrote:
> mencoder.c:939: error: `SIGHUP' undeclared (first use in this function)
> mencoder.c:939: error: (Each undeclared identifier is reported only once
> mencoder.c:939: error: for each function it appears in.)
> mencoder.c:940: error: `SIGPIPE' undeclared (first use in this function)
> 
> SIGHUP is defined in mplayer.c and SIGPIPE isn't defined anywhere. I
> assume I'm missing some system header as I'm using MinGW and MSYS (and
> MSYS DTK) on Windows. However, are these two lines necessary as one
> member of the mplayerdev IRC channel said that uncaught sig_pipe/hup
> will be interpreted as sigterm. This means nothing to me but I felt I
> should report this problem.
> 
> Is there any other information you require?
> 
I don't know is this signals not defined or not exists on Windows but thinks this lines may
be skipped in this case:

--- mencoder.c      2005-04-17 16:30:30.000000000 +0500
+++ mencoder.c.new  2005-07-22 22:54:04.000000000 +0500
@@ -1219,8 +1219,12 @@
  signal(SIGINT,exit_sighandler);  // Interrupt from keyboard
  signal(SIGQUIT,exit_sighandler); // Quit from keyboard
  signal(SIGTERM,exit_sighandler); // kill
+#ifdef SIGHUP
  signal(SIGHUP,exit_sighandler);  // Broken terminal line
+#endif
+#ifdef SIGPIPE
  signal(SIGPIPE,exit_sighandler); // Broken pipe
+#endif

  timer_start=GetTimerMS();
  } // if (!curfile) // if this was the first file.





More information about the MPlayer-dev-eng mailing list