--- sysdeputil.c.old	2013-07-18 17:12:16.000000000 +0200
+++ sysdeputil.c	2013-07-18 17:12:29.000000000 +0200
@@ -63,6 +63,10 @@
 #define __USE_GNU
 #include <utmpx.h>
 
+#if defined(__APPLE__)
+  #undef VSF_SYSDEP_HAVE_UTMPX
+#endif
+
 /* BEGIN config */
 #if defined(__linux__)
   #include <errno.h>
@@ -323,8 +327,10 @@
                       const struct mystr* p_remote_host)
 {
   int retval = -1;
+#ifdef PAM_USER
   pam_item_t item;
   const char* pam_user_name = 0;
+#endif
   struct pam_conv the_conv =
   {
     &pam_conv_func,
