From bfbe6d389e736541b4aa689bf5117d0fe43ce1b7 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Wed, 28 Jun 1995 00:34:38 +0000 Subject: [PATCH] * read_passwd.c: only use volatile if __STDC__ is 1 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6173 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/des425/ChangeLog | 3 +++ src/lib/des425/read_passwd.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index 95d2c7acd..615a309a5 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,6 @@ +Tue Jun 27 23:17:11 1995 Mark Eichin + + * read_passwd.c: only use volatile if __STDC__ is 1. Tue Jun 27 15:51:10 EDT 1995 Paul Park (pjpark@mit.edu) * util.c - Make #endif ansi-compliant. diff --git a/src/lib/des425/read_passwd.c b/src/lib/des425/read_passwd.c index d9f29d72e..819981aee 100644 --- a/src/lib/des425/read_passwd.c +++ b/src/lib/des425/read_passwd.c @@ -47,6 +47,11 @@ intr_routine(signo) } +/* native sunos cc lacks volatile */ +#if !defined(__STDC__) || __STDC__ != 1 +#define volatile +#endif + /*** Routines ****************************************************** */ krb5_error_code des_read_pw_string/*_v4_compat_crock*/(return_pwd, bufsize, prompt, prompt2) -- 2.26.2