*/
#include "includes.h"
+#include "system/filesys.h"
+#include "smbd/smbd.h"
/****************************************************************************
Reflect connection status in utmp/wtmp files.
#else /* WITH_UTMP */
+#ifdef HAVE_UTMP_H
#include <utmp.h>
+#endif
#ifdef HAVE_UTMPX_H
#include <utmpx.h>
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
/*