pull up r24568 from trunk
authorTom Yu <tlyu@mit.edu>
Tue, 14 Dec 2010 23:10:52 +0000 (23:10 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 14 Dec 2010 23:10:52 +0000 (23:10 +0000)
 ------------------------------------------------------------------------
 r24568 | ghudson | 2010-12-14 13:46:46 -0500 (Tue, 14 Dec 2010) | 10 lines

 ticket: 6842
 subject: Ensure time() is prototyped in g_accept_sec_context.c
 tags: pullup
 target_version: 1.9

 r22736 added a call to time() in g_accept_sec_context.c.  Include
 <time.h> to ensure that this call is correctly prototyped.  Previously
 <time.h> was only included implicitly through <pthread.h>, which
 doesn't apply when thread support is disabled.

ticket: 6842
version_fixed: 1.9
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-9@24573 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/mechglue/g_accept_sec_context.c

index 498bfc4569dac3fc11165db1e313f91c2cdcc618..d585de78776301f459f13d7155afd45dcb0b12cc 100644 (file)
@@ -32,6 +32,7 @@
 #endif
 #include <string.h>
 #include <errno.h>
+#include <time.h>
 
 #ifndef LEAN_CLIENT
 static OM_uint32