openbsd-ports/devel/liboobs/patches/patch-oobs_oobs-user_c
ajacoutot 5b8b037a8f Update to liboobs-2.32.0.
ok jasper@
2010-09-30 07:45:17 +00:00

33 lines
752 B
Plaintext

$OpenBSD: patch-oobs_oobs-user_c,v 1.2 2010/09/30 07:45:17 ajacoutot Exp $
--- oobs/oobs-user.c.orig Sun Aug 22 15:08:11 2010
+++ oobs/oobs-user.c Mon Sep 27 18:27:00 2010
@@ -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"
@@ -1287,6 +1289,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;
@@ -1307,6 +1310,9 @@ oobs_user_get_active (OobsUser *user)
endutxent ();
return match;
+#else
+ return FALSE;
+#endif
}
/**