Bug 30438 – PolicyKit fails to build on AIX
authorDavid Zeuthen <davidz@redhat.com>
Wed, 23 Feb 2011 14:16:00 +0000 (09:16 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Wed, 23 Feb 2011 14:16:00 +0000 (09:16 -0500)
https://bugs.freedesktop.org/show_bug.cgi?id=30438

Signed-off-by: David Zeuthen <davidz@redhat.com>
src/polkitd/gposixsignal.c
src/polkitd/main.c

index 8e9bb658f983970919ce33718946987868321ea4..0dbd8e8a63de05dc11aa90cbf33e1cf47a1edff5 100644 (file)
@@ -1,5 +1,5 @@
 /* -*- 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;
@@ -126,3 +127,22 @@ _g_posix_signal_watch_add (gint                   signum,
 
   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__ */
index 4b1967a14b383854a66f764aa9fc972d7076e99f..33ea51168e75b20a32d2d46990e271a66dbd254f 100644 (file)
@@ -90,6 +90,7 @@ on_sigint (gpointer user_data)
   g_main_loop_quit (loop);
   return FALSE;
 }
+
 int
 main (int    argc,
       char **argv)