summaryrefslogtreecommitdiffstats
path: root/devel/liboobs/files/patch-src_oobs-user.c
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2011-04-04 17:31:42 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2011-04-04 17:31:42 +0800
commit60b4ed2c3451eac0181027907c8ee78e9b885bbc (patch)
tree0ce9f7b14cff12f9aaa596f8c0870572d8505206 /devel/liboobs/files/patch-src_oobs-user.c
parentddd756341b5550c28fc7c839899b848ab02ffc6c (diff)
downloadmarcuscom-ports-60b4ed2c3451eac0181027907c8ee78e9b885bbc.tar
marcuscom-ports-60b4ed2c3451eac0181027907c8ee78e9b885bbc.tar.gz
marcuscom-ports-60b4ed2c3451eac0181027907c8ee78e9b885bbc.tar.bz2
marcuscom-ports-60b4ed2c3451eac0181027907c8ee78e9b885bbc.tar.lz
marcuscom-ports-60b4ed2c3451eac0181027907c8ee78e9b885bbc.tar.xz
marcuscom-ports-60b4ed2c3451eac0181027907c8ee78e9b885bbc.tar.zst
marcuscom-ports-60b4ed2c3451eac0181027907c8ee78e9b885bbc.zip
UPdate to 3.0.0.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@15693 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/liboobs/files/patch-src_oobs-user.c')
-rw-r--r--devel/liboobs/files/patch-src_oobs-user.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/devel/liboobs/files/patch-src_oobs-user.c b/devel/liboobs/files/patch-src_oobs-user.c
new file mode 100644
index 000000000..a7215c4ef
--- /dev/null
+++ b/devel/liboobs/files/patch-src_oobs-user.c
@@ -0,0 +1,45 @@
+--- oobs/oobs-user.c.orig 2010-01-31 17:36:52.000000000 +0000
++++ oobs/oobs-user.c 2010-01-31 17:40:21.000000000 +0000
+@@ -19,13 +19,24 @@
+ * Milan Bouchet-Valat <nalimilan@club.fr>.
+ */
+
++#ifdef __FreeBSD__
++# include <sys/param.h>
++# if __FreeBSD_version >= 900007
++# define HAVE_UTMPX_H
++# endif
++#endif
++
+ #include <glib-object.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <string.h>
++#ifdef HAVE_CRYPT_H
+ #include <crypt.h>
++#endif
++#ifdef HAVE_UTMPX_H
+ #include <utmpx.h>
++#endif
+
+ #include "oobs-object-private.h"
+ #include "oobs-usersconfig.h"
+@@ -1252,6 +1263,7 @@ oobs_user_set_locale (OobsUser *user, co
+ gboolean
+ oobs_user_get_active (OobsUser *user)
+ {
++#ifdef HAVE_UTMPX_H
+ struct utmpx *entry;
+ const gchar *login;
+ gboolean match = FALSE;
+@@ -1272,6 +1284,9 @@ oobs_user_get_active (OobsUser *user)
+ endutxent ();
+
+ return match;
++#else
++ return FALSE;
++#endif
+ }
+
+ /**