Revision: 1877
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1877&view=rev
Author:   zas_
Date:     2009-12-04 21:01:11 +0000 (Fri, 04 Dec 2009)

Log Message:
-----------
Some systems do not have SA_SIGINFO (siginfo_t), like GNU/Hurd, so just test if 
defined or not. Patch by Michal ?\196?\140iha?\197?\153 (Bug ID: 2894271).

Modified Paths:
--------------
    trunk/src/main.c

Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c    2009-12-04 20:40:02 UTC (rev 1876)
+++ trunk/src/main.c    2009-12-04 21:01:11 UTC (rev 1877)
@@ -709,7 +709,7 @@
  */
 /* FIXME: this probably needs some better ifdefs. Please report any 
compilation problems */
 
-#ifdef SIGBUS
+#if defined(SIGBUS) && defined(SA_SIGINFO)
 static void sigbus_handler_cb(int signum, siginfo_t *info, void *context)
 {
        unsigned long pagesize = sysconf(_SC_PAGE_SIZE);
@@ -720,7 +720,7 @@
 
 static void setup_sigbus_handler(void)
 {
-#ifdef SIGBUS
+#if defined(SIGBUS) && defined(SA_SIGINFO)
        struct sigaction sigbus_action;
        sigfillset(&sigbus_action.sa_mask);
        sigbus_action.sa_sigaction = sigbus_handler_cb;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to