33 lines
752 B
Plaintext
33 lines
752 B
Plaintext
$OpenBSD: patch-oobs_oobs-user_c,v 1.3 2011/04/02 13:40:04 ajacoutot Exp $
|
|
--- oobs/oobs-user.c.orig Fri Dec 17 19:47:50 2010
|
|
+++ oobs/oobs-user.c Sat Apr 2 15:24:34 2011
|
|
@@ -24,8 +24,10 @@
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
+#ifndef __OpenBSD__
|
|
#include <crypt.h>
|
|
#include <utmpx.h>
|
|
+#endif
|
|
|
|
#include "oobs-object-private.h"
|
|
#include "oobs-usersconfig.h"
|
|
@@ -1280,6 +1282,7 @@ oobs_user_set_locale (OobsUser *user, const gchar *loc
|
|
gboolean
|
|
oobs_user_get_active (OobsUser *user)
|
|
{
|
|
+#ifndef __OpenBSD__
|
|
struct utmpx *entry;
|
|
const gchar *login;
|
|
gboolean match = FALSE;
|
|
@@ -1300,6 +1303,9 @@ oobs_user_get_active (OobsUser *user)
|
|
endutxent ();
|
|
|
|
return match;
|
|
+#else
|
|
+ return FALSE;
|
|
+#endif
|
|
}
|
|
|
|
/**
|