Added sys/stat.h to sysdeps.h

Needed on BSD for S_* ioctl constants and macros
This commit is contained in:
robxnano 2022-10-01 20:20:40 +01:00
parent 2fa17a0783
commit 7482de353b
2 changed files with 4 additions and 4 deletions

View File

@ -45,10 +45,6 @@ RCSID("$OpenBSD: sshpty.c,v 1.4 2001/12/19 07:18:56 deraadt Exp $");
# include <sys/bsdtty.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> /* For S_* constants and macros */
#endif
#ifndef _PATH_TTY
# define _PATH_TTY "/dev/tty"
#endif

View File

@ -51,6 +51,10 @@
# include <fcntl.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> /* For S_* constants and macros */
#endif
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>