Artur wrote:
> pan.cc: In function `void <unnamed>::sighup_handler(int)':
> pan.cc:54: error: `SIGHUP' undeclared (first use this function)
> pan.cc:54: error: (Each undeclared identifier is reported only once for
> each fun ction it appears in.)
> pan.cc: In function `void <unnamed>::register_shutdown_signals()':
> pan.cc:74: error: `SIGHUP' undeclared (first use this function)
> pan.cc:76: error: `SIGQUIT' undeclared (first use this function)
> make[3]: *** [pan.o] Error 1
> make[3]: Leaving directory `/home/Artur/pan-0.108/pan/gui'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/Artur/pan-0.108/pan'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/Artur/pan-0.108'
> make: *** [all] Error 2
Yeah. This slipped through for the same reason there hasn't been
a new Pan Windows build in awhile: I don't currently have access
to a Windows box suitable for building Pan.
Attached is a quick patch that should fix this.
--- pan.cc.bak 2006-08-13 18:41:02.000000000 -0500
+++ pan.cc 2006-08-13 18:41:39.000000000 -0500
@@ -49,6 +49,7 @@
return true; // don't invoke the default handler that destroys the widget
}
+#ifndef G_OS_WIN32
void sighup_handler (int unused)
{
signal (SIGHUP, sighup_handler); // reset signal
@@ -68,12 +69,15 @@
std::cerr << LINE_ID << std::endl;
gtk_main_quit ();
}
+#endif // G_OS_WIN32
void register_shutdown_signals ()
{
+#ifndef G_OS_WIN32
signal (SIGHUP, sighup_handler);
signal (SIGINT, sigint_handler);
signal (SIGQUIT, sigquit_handler);
+#endif // G_OS_WIN32
}
void destroy_cb (GtkWidget*w, gpointer user_data)_______________________________________________
Pan-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pan-users