--- sysdeputil.c.orig	2005-04-16 17:14:08.000000000 -0400
+++ sysdeputil.c	2005-04-16 17:15:02.000000000 -0400
@@ -58,6 +58,10 @@
 #define __USE_GNU
 #include <utmpx.h>
 
+#if defined(__APPLE__)
+  #undef VSF_SYSDEP_HAVE_UTMPX
+#endif
+
 /* BEGIN config */
 #if defined(__linux__) && !defined(__ia64__) && !defined(__s390__)
   #define VSF_SYSDEP_TRY_LINUX_SETPROCTITLE_HACK
@@ -139,7 +143,7 @@
 /* END config */
 
 /* PAM support - we include our own dummy version if the system lacks this */
-#include <security/pam_appl.h>
+#include <pam/pam_appl.h>
 
 /* No PAM? Try getspnam() with a getpwnam() fallback */
 #ifndef VSF_SYSDEP_HAVE_PAM
