mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 05:17:54 +00:00
Add missing variable declaration for when TIOCSCTTY is not defined.
Need to include sys/termio.h for TIOCSCTTY on some systems.
This commit is contained in:
parent
03e0e4c747
commit
db502bb584
15
script.c
15
script.c
@ -21,6 +21,15 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/wait.h>
|
||||
#ifdef HAVE_TERMIOS_H
|
||||
# include <termios.h>
|
||||
#else
|
||||
# ifdef HAVE_TERMIO_H
|
||||
# include <termio.h>
|
||||
# else
|
||||
# include <sgtty.h>
|
||||
# endif /* HAVE_TERMIO_H */
|
||||
#endif /* HAVE_TERMIOS_H */
|
||||
#include <sys/ioctl.h>
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
@ -566,8 +575,10 @@ script_child(path, argv, rbac_enabled)
|
||||
{
|
||||
sigaction_t sa;
|
||||
pid_t pid;
|
||||
int status;
|
||||
int exitcode = 1;
|
||||
int status, exitcode = 1;
|
||||
#ifndef TIOCSCTTY
|
||||
int n;
|
||||
#endif
|
||||
|
||||
/* Reset signal handlers. */
|
||||
zero_bytes(&sa, sizeof(sa));
|
||||
|
Loading…
x
Reference in New Issue
Block a user