[52498] trunk/dports/gnome/liboobs
devans at macports.org
devans at macports.org
Wed Jun 17 11:20:56 PDT 2009
Revision: 52498
http://trac.macports.org/changeset/52498
Author: devans at macports.org
Date: 2009-06-17 11:20:56 -0700 (Wed, 17 Jun 2009)
Log Message:
-----------
liboobs: add patch files.
Added Paths:
-----------
trunk/dports/gnome/liboobs/files/
trunk/dports/gnome/liboobs/files/patch-oobs-oobs-ifacesconfig.c.diff
trunk/dports/gnome/liboobs/files/patch-oobs-oobs-user.c.diff
Added: trunk/dports/gnome/liboobs/files/patch-oobs-oobs-ifacesconfig.c.diff
===================================================================
--- trunk/dports/gnome/liboobs/files/patch-oobs-oobs-ifacesconfig.c.diff (rev 0)
+++ trunk/dports/gnome/liboobs/files/patch-oobs-oobs-ifacesconfig.c.diff 2009-06-17 18:20:56 UTC (rev 52498)
@@ -0,0 +1,14 @@
+--- oobs/oobs-ifacesconfig.c.orig 2009-06-17 10:18:24.000000000 -0700
++++ oobs/oobs-ifacesconfig.c 2009-06-17 10:19:59.000000000 -0700
+@@ -20,7 +20,11 @@
+
+ #include <dbus/dbus.h>
+ #include <glib-object.h>
++
++#ifdef HAVE_HAL
+ #include <libhal.h>
++#endif
++
+ #include <string.h>
+ #include "oobs-session-private.h"
+ #include "oobs-list-private.h"
Added: trunk/dports/gnome/liboobs/files/patch-oobs-oobs-user.c.diff
===================================================================
--- trunk/dports/gnome/liboobs/files/patch-oobs-oobs-user.c.diff (rev 0)
+++ trunk/dports/gnome/liboobs/files/patch-oobs-oobs-user.c.diff 2009-06-17 18:20:56 UTC (rev 52498)
@@ -0,0 +1,51 @@
+--- oobs/oobs-user.c.orig 2008-01-02 06:23:56.000000000 -0800
++++ oobs/oobs-user.c 2009-06-17 10:48:41.000000000 -0700
+@@ -23,8 +23,13 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <string.h>
++
++#ifdef __APPLE__
++#include <utmpx.h>
++#else
+ #include <crypt.h>
+ #include <utmp.h>
++#endif
+
+ #include "oobs-usersconfig.h"
+ #include "oobs-user.h"
+@@ -804,7 +809,11 @@
+ gboolean
+ oobs_user_get_active (OobsUser *user)
+ {
++#ifdef __APPLE__
++ struct utmpx *entry;
++#else
+ struct utmp *entry;
++#endif
+ const gchar *login;
+ gboolean match = FALSE;
+
+@@ -812,14 +821,22 @@
+
+ login = oobs_user_get_login_name (user);
+
++#ifdef __APPLE__
++ while (!match && (entry = getutxent ()) != NULL)
++#else
+ while (!match && (entry = getutent ()) != NULL)
++#endif
+ {
+ match = (entry->ut_type == USER_PROCESS &&
+ strcmp (entry->ut_user, login) == 0);
+ }
+
+ /* close utmp */
++#ifdef __APPLE__
++ endutxent ();
++#else
+ endutent ();
++#endif
+
+ return match;
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090617/f537aa6d/attachment.html>
More information about the macports-changes
mailing list