s3-smbd: Call sys_acl_free_acl() directly rather than via the VFS
[samba.git] / source3 / smbd / utmp.c
index 74774054e855d8ce04add9edb5f386ada7377e84..34b77616b6a61d9e0af6ed06414c5efe86245155 100644 (file)
@@ -19,6 +19,8 @@
 */
 
 #include "includes.h"
+#include "system/filesys.h"
+#include "smbd/smbd.h"
 
 /****************************************************************************
 Reflect connection status in utmp/wtmp files.
@@ -124,7 +126,9 @@ void sys_utmp_yield(const char *username, const char *hostname,
 
 #else /* WITH_UTMP */
 
+#ifdef HAVE_UTMP_H
 #include <utmp.h>
+#endif
 
 #ifdef HAVE_UTMPX_H
 #include <utmpx.h>
@@ -524,7 +528,7 @@ static bool sys_utmp_fill(struct utmp *u,
        utmp_strcpy(u->ut_line, id_str, sizeof(u->ut_line));
 
 #if defined(HAVE_UT_UT_PID)
-       u->ut_pid = sys_getpid();
+       u->ut_pid = getpid();
 #endif
 
 /*