From: Todd C. Miller Date: Tue, 27 Nov 2012 15:49:46 +0000 (-0500) Subject: Define sudo_ttyname_dev() for the HAVE_STRUCT_PSINFO_PR_TTYDEV case X-Git-Tag: SUDO_1_8_7~1^2~305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3ab8b080bfefe2d831a5e971b5c0c4e41ab7bea;p=sudo Define sudo_ttyname_dev() for the HAVE_STRUCT_PSINFO_PR_TTYDEV case too. --- diff --git a/src/ttyname.c b/src/ttyname.c index 3e2af41a8..821dc2366 100644 --- a/src/ttyname.c +++ b/src/ttyname.c @@ -155,7 +155,7 @@ sudo_ttyname_dev(dev_t tdev) debug_return_str(estrdup(tty)); } -#elif defined(__linux__) +#elif defined(HAVE_STRUCT_PSINFO_PR_TTYDEV) || defined(__linux__) /* * Devices to search before doing a breadth-first scan. */