]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/locate_host.c
Where gettimeofday() is required, include both time.h and sys/time.h
[citadel.git] / citadel / server / locate_host.c
index 64879eefbb797115d5037b89572205a702977611..635862f41b952e2a95ea732bae43064ec75f84e3 100644 (file)
@@ -1,16 +1,9 @@
-/*
- * Functions which handle hostname/address lookups and resolution
- *
- * Copyright (c) 1987-2019 by the citadel.org team
- *
- * This program is open source software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License, version 3.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- */
+// Functions which handle hostname/address lookups and resolution
+//
+// 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.
 
 #include "sysdep.h"
 #include <string.h>
@@ -20,6 +13,7 @@
 #include <netdb.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
+#include <sys/time.h>
 #include <libcitadel.h>
 
 #include "context.h"