return res;
}
-#ifdef G_OS_UNIX
+#if defined (G_OS_UNIX) && !defined (__APPLE__)
static void
fault_restore (void)
{
sigaction (SIGSEGV, &action, NULL);
sigaction (SIGQUIT, &action, NULL);
}
-#endif /* G_OS_UNIX */
+#endif /* G_OS_UNIX && !__APPLE__ */
void
gst_validate_spin_on_fault_signals (void)
{
-#ifdef G_OS_UNIX
+#if defined (G_OS_UNIX) && !defined (__APPLE__)
fault_setup ();
#endif
}
extern volatile gboolean glib_on_error_halt;
-#ifdef G_OS_UNIX
+#if defined (G_OS_UNIX) && !defined (__APPLE__)
static void fault_restore (void);
static void fault_spin (void);
#endif
/* convenience macro so we don't have to litter the code with if(!quiet) */
#define PRINT if(!quiet)gst_print
-#ifdef G_OS_UNIX
+#if defined (G_OS_UNIX) && !defined (__APPLE__)
static void
fault_handler_sighandler (int signum)
{
sigaction (SIGSEGV, &action, NULL);
sigaction (SIGQUIT, &action, NULL);
}
-#endif /* G_OS_UNIX */
+#endif /* G_OS_UNIX && !__APPLE__ */
#if 0
typedef struct _GstIndexStats
gst_tools_print_version ();
-#ifdef G_OS_UNIX
+#if defined (G_OS_UNIX) && !defined (__APPLE__)
if (!no_fault)
fault_setup ();
#endif