]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Include time.h in kdb.h 1245/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 29 Mar 2022 20:27:55 +0000 (16:27 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 11 Apr 2022 20:35:38 +0000 (16:35 -0400)
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

index 21bddcfb883d4265135f05b459d366a8294825bc..bbae9d101b669906a781267d655f43c0c22dad5f 100644 (file)
@@ -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