summaryrefslogtreecommitdiff
path: root/devel/liboobs/files/patch-src_oobs-user.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/liboobs/files/patch-src_oobs-user.c')
-rw-r--r--devel/liboobs/files/patch-src_oobs-user.c28
1 files changed, 20 insertions, 8 deletions
diff --git a/devel/liboobs/files/patch-src_oobs-user.c b/devel/liboobs/files/patch-src_oobs-user.c
index e571a363fdb0..484b86f32e64 100644
--- a/devel/liboobs/files/patch-src_oobs-user.c
+++ b/devel/liboobs/files/patch-src_oobs-user.c
@@ -1,6 +1,6 @@
---- oobs/oobs-user.c.orig Fri Sep 15 19:16:41 2006
-+++ oobs/oobs-user.c Tue Oct 31 23:12:29 2006
-@@ -18,6 +18,10 @@
+--- oobs/oobs-user.c.orig 2007-10-30 09:16:53.406333206 -0400
++++ oobs/oobs-user.c 2007-10-30 09:40:02.560797530 -0400
+@@ -18,12 +18,18 @@
* Authors: Carlos Garnacho Parro <carlosg@gnome.org>
*/
@@ -11,13 +11,25 @@
#include <glib-object.h>
#include <sys/types.h>
#include <unistd.h>
-@@ -30,7 +34,9 @@
- #include "oobs-group.h"
- #include "oobs-defines.h"
- #include "utils.h"
+ #include <stdlib.h>
+ #include <string.h>
+#ifdef HAVE_CRYPT_H
#include <crypt.h>
+#endif
+ #include <utmp.h>
- #define OOBS_USER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), OOBS_TYPE_USER, OobsUserPrivate))
+ #include "oobs-usersconfig.h"
+@@ -852,6 +858,7 @@
+ login = oobs_user_get_login_name (user);
+
++#if 0 /* FreeBSD does not have ut_type in utmp */
+ while (!match && (entry = getutent ()) != NULL)
+ {
+ match = (entry->ut_type == USER_PROCESS &&
+@@ -862,4 +869,5 @@
+ endutent ();
+
+ return match;
++#endif
+ }