]> granicus.if.org Git - sudo/commitdiff
Define PRNODEV for those w/o it.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 10 Apr 2012 20:12:08 +0000 (16:12 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 10 Apr 2012 20:12:08 +0000 (16:12 -0400)
src/ttyname.c

index 499bfa872354781b57cd67906803256d73382342..395cba8233e9ec37aacf86feb7909ffbdd08e2a6 100644 (file)
@@ -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