Commit 02155a23 authored by David Zeuthen's avatar David Zeuthen
Browse files

Bug 30438 – PolicyKit fails to build on AIX

https://bugs.freedesktop.org/show_bug.cgi?id=30438

Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
parent dd3593a5
/* -*- 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
......@@ -22,12 +22,13 @@
#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__ */
......@@ -90,6 +90,7 @@ on_sigint (gpointer user_data)
g_main_loop_quit (loop);
return FALSE;
}
int
main (int argc,
char **argv)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment