https://bugs.freedesktop.org/show_bug.cgi?id=30438
Signed-off-by: David Zeuthen <davidz@redhat.com>
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-/*
+/*
* Copyright (C) 2010 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
#include "config.h"
+#include "gposixsignal.h"
+
+#if defined(__linux__)
#include <unistd.h>
#include <sys/signalfd.h>
#include <signal.h>
-#include "gposixsignal.h"
-
typedef struct
{
GSource source;
return id;
}
+#else /* __linux__ */
+
+GSource *
+_g_posix_signal_source_new (gint signum)
+{
+ return NULL;
+}
+
+guint
+_g_posix_signal_watch_add (gint signum,
+ gint priority,
+ _GPosixSignalWatchFunc function,
+ gpointer user_data,
+ GDestroyNotify notify)
+{
+ return 0;
+}
+
+#endif /* __linux__ */
g_main_loop_quit (loop);
return FALSE;
}
+
int
main (int argc,
char **argv)