Imported Upstream version 1.7.4p4
[debian/sudo] / sudo.c
diff --git a/sudo.c b/sudo.c
index 3bccdd34c484fab61e2e2068c257658664c2346e..159a2c8351c53811f2194062894653d41b49922b 100644 (file)
--- a/sudo.c
+++ b/sudo.c
 # include "nonunix.h"
 #endif
 
-#ifdef HAVE_PAM
+#if defined(HAVE_PAM) && !defined(NO_PAM_SESSION)
 # define CMND_WAIT     TRUE
 #else
 # define CMND_WAIT     FALSE