openbsd-ports/x11/gnome/power-manager/patches/patch-src_gpm-backlight-helper_c
2011-09-12 07:28:52 +00:00

25 lines
606 B
Plaintext

$OpenBSD: patch-src_gpm-backlight-helper_c,v 1.2 2011/09/12 07:28:54 jasper Exp $
XXX make gnome-power-backlight-helper do nothing and return 0.
--- src/gpm-backlight-helper.c.orig Fri Aug 6 15:50:47 2010
+++ src/gpm-backlight-helper.c Tue May 24 19:32:32 2011
@@ -141,6 +141,7 @@ out:
gint
main (gint argc, gchar *argv[])
{
+#ifndef __OpenBSD__
GOptionContext *context;
gint uid;
gint euid;
@@ -276,5 +277,9 @@ out:
g_free (filename_file);
g_free (contents);
return retval;
+#else
+ g_print ("This program does nothing on OpenBSD (no support for sysfs(2)).\n");
+ return 0;
+#endif
}