krb5 commit: Include time.h in kdb.h

ghudson at mit.edu ghudson at mit.edu
Tue Apr 12 17:16:38 EDT 2022


https://github.com/krb5/krb5/commit/c3958cec43b598b25484b9805224c56f25f7a755
commit c3958cec43b598b25484b9805224c56f25f7a755
Author: Greg Hudson <ghudson at mit.edu>
Date:   Tue Mar 29 16:27:55 2022 -0400

    Include time.h in kdb.h
    
    kdb.h uses time_t, and therefore must include <time.h> to ensure its
    definition.  Noticed when building t_sort_key_data.c on macOS.

 src/include/kdb.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/include/kdb.h b/src/include/kdb.h
index 21bddcfb8..bbae9d101 100644
--- a/src/include/kdb.h
+++ b/src/include/kdb.h
@@ -65,6 +65,7 @@
 #ifndef KRB5_KDB5__
 #define KRB5_KDB5__
 
+#include <time.h>
 #include <krb5.h>
 
 /* This version will be incremented when incompatible changes are made to the


More information about the cvs-krb5 mailing list