ticket: 6842
authorghudson <ghudson@dc483132-0cff-0310-8789-dd5450dbe970>
Tue, 14 Dec 2010 18:46:46 +0000 (18:46 +0000)
committerghudson <ghudson@dc483132-0cff-0310-8789-dd5450dbe970>
Tue, 14 Dec 2010 18:46:46 +0000 (18:46 +0000)
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.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24568 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