]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
gettime: fix minor compilation warnings 13139/head
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 15 Aug 2023 11:22:34 +0000 (13:22 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Tue, 15 Aug 2023 12:04:41 +0000 (14:04 +0200)
pdns/gettime.cc

index b6d95a4ed29f865de4bc89c04ab3cdcbcc965fd5..e7b37b65d43f0b3336e117a8e1c39f4345012f5f 100644 (file)
@@ -36,8 +36,9 @@ int gettime(struct timespec *tp, bool needRealTime)
 
 #else
 #include <sys/time.h>
+#include <cstddef>
 
-int gettime(struct timespec *tp, bool needRealTime)
+int gettime(struct timespec *tp, bool /* needRealTime */)
 {
        struct timeval tv;