$OpenBSD: patch-plugins_power_gsd-backlight-helper_c,v 1.1 2011/09/27 09:35:06 ajacoutot Exp $

XXX make gnome-power-backlight-helper do nothing and return 0.

--- plugins/power/gsd-backlight-helper.c.orig	Wed Sep  7 12:29:58 2011
+++ plugins/power/gsd-backlight-helper.c	Tue Sep 27 10:56:35 2011
@@ -132,6 +132,7 @@ out:
 int
 main (int argc, char *argv[])
 {
+#ifndef __OpenBSD__
 	GOptionContext *context;
 	gint uid;
 	gint euid;
@@ -267,5 +268,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
 }
 
