]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Include time.h for time().
authordtucker@openbsd.org <dtucker@openbsd.org>
Mon, 7 Apr 2025 08:12:22 +0000 (08:12 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 7 Apr 2025 11:12:21 +0000 (21:12 +1000)
Fixes warning on some platforms when building without openssl.

OpenBSD-Commit-ID: 04ca29b8eaae1860c7adde3e770baa1866e30a54

sshd.c

diff --git a/sshd.c b/sshd.c
index f77e1205bac27401bedd663a9950867e744cd595..4a93e29e4c0470f65454dab46df365277bbb67d0 100644 (file)
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd.c,v 1.616 2025/03/12 22:43:44 djm Exp $ */
+/* $OpenBSD: sshd.c,v 1.617 2025/04/07 08:12:22 dtucker Exp $ */
 /*
  * Copyright (c) 2000, 2001, 2002 Markus Friedl.  All rights reserved.
  * Copyright (c) 2002 Niels Provos.  All rights reserved.
@@ -53,6 +53,7 @@
 #include <pwd.h>
 #include <signal.h>
 #include <stdarg.h>
+#include <time.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>