Where gettimeofday() is required, include both time.h and sys/time.h
[citadel.git] / citadel / server / locate_host.c
index 98cfc9c953a6c7c7b8502d9b14d694605149f84f..635862f41b952e2a95ea732bae43064ec75f84e3 100644 (file)
@@ -1,6 +1,6 @@
 // Functions which handle hostname/address lookups and resolution
 //
-// Copyright (c) 1987-2019 by the citadel.org team
+// Copyright (c) 1987-2023 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, or disclosure
 // is subject to the terms of the GNU General Public License, version 3.
@@ -13,6 +13,7 @@
 #include <netdb.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
+#include <sys/time.h>
 #include <libcitadel.h>
 
 #include "context.h"