From: Todd C. Miller Date: Tue, 10 Apr 2012 20:12:08 +0000 (-0400) Subject: Define PRNODEV for those w/o it. X-Git-Tag: SUDO_1_8_5~1^2~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=271f3e2054552c9cdc5d093d74a65e50a39e1211;p=sudo Define PRNODEV for those w/o it. --- diff --git a/src/ttyname.c b/src/ttyname.c index 499bfa872..395cba823 100644 --- a/src/ttyname.c +++ b/src/ttyname.c @@ -157,6 +157,9 @@ get_process_ttyname(void) debug_return_str(tty); } #elif defined(HAVE_STRUCT_PSINFO_PR_TTYDEV) +# ifndef PRNODEV +# define PRNODEV ((dev_t)-1) +# endif /* * Return a string from ttyname() containing the tty to which the process is * attached or NULL if there is no tty associated with the process (or its