mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-08 08:58:00 +00:00
Don't #include <utmp.h> if it doesn't exist.
A FreeBSD user reports that it doesn't exist there.
This commit is contained in:
parent
6e69223dc2
commit
6791bdc9b6
@ -21,6 +21,7 @@
|
||||
#cmakedefine01 HAVE_SYS_SYSCTL_H
|
||||
#cmakedefine01 HAVE_SYS_TYPES_H
|
||||
#cmakedefine01 HAVE_GLOB_H
|
||||
#cmakedefine01 HAVE_UTMP_H
|
||||
#cmakedefine01 HAVE_FUTIMES
|
||||
#cmakedefine01 HAVE_GETADDRINFO
|
||||
#cmakedefine01 HAVE_POSIX_OPENPT
|
||||
|
@ -18,6 +18,7 @@ check_include_file(asm/hwcap.h HAVE_ASM_HWCAP_H)
|
||||
check_include_file(sys/sysctl.h HAVE_SYS_SYSCTL_H)
|
||||
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
|
||||
check_include_file(glob.h HAVE_GLOB_H)
|
||||
check_include_file(utmp.h HAVE_UTMP_H)
|
||||
|
||||
check_symbol_exists(futimes "sys/time.h" HAVE_FUTIMES)
|
||||
check_symbol_exists(getaddrinfo "sys/types.h;sys/socket.h;netdb.h"
|
||||
|
@ -13,7 +13,9 @@
|
||||
#include <fcntl.h>
|
||||
#include <termios.h>
|
||||
#include <grp.h>
|
||||
#if HAVE_UTMP_H
|
||||
#include <utmp.h>
|
||||
#endif
|
||||
#include <pwd.h>
|
||||
#include <time.h>
|
||||
#include <sys/types.h>
|
||||
|
Loading…
Reference in New Issue
Block a user