Include sys/time.h to use gettimeofday()
This commit is contained in:
parent
8085d898b0
commit
844799049e
@ -32,13 +32,14 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <sys/time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "os_calls.h"
|
#include "os_calls.h"
|
||||||
#include "sessionrecord.h"
|
#include "sessionrecord.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Prepare the utmp/ struct and write it.
|
* Prepare the utmp/ struct and write it.
|
||||||
* this can handle login and logout at once with the 'state' parameter
|
* this can handle login and logout at once with the 'state' parameter
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user