From 66e5b30f07118dc27f73db4347326bf0321b41fe Mon Sep 17 00:00:00 2001 From: guenther Date: Sun, 18 Aug 2024 02:20:29 +0000 Subject: [PATCH] Pull in (for snprintf()) directly instead of assuming some local .h will pull it in ok deraadt@ --- lib/libc/locale/setlocale.c | 3 ++- lib/libc/time/localtime.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index 08027ed7e51..2c64c480aa7 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setlocale.c,v 1.30 2019/07/03 03:24:04 deraadt Exp $ */ +/* $OpenBSD: setlocale.c,v 1.31 2024/08/18 02:20:29 guenther Exp $ */ /* * Copyright (c) 2017 Ingo Schwarze * @@ -16,6 +16,7 @@ */ #include +#include #include #include diff --git a/lib/libc/time/localtime.c b/lib/libc/time/localtime.c index 82a3347bd93..7c72c677656 100644 --- a/lib/libc/time/localtime.c +++ b/lib/libc/time/localtime.c @@ -1,4 +1,4 @@ -/* $OpenBSD: localtime.c,v 1.66 2024/04/04 02:20:01 millert Exp $ */ +/* $OpenBSD: localtime.c,v 1.67 2024/08/18 02:20:29 guenther Exp $ */ /* ** This file is in the public domain, so clarified as of ** 1996-06-05 by Arthur David Olson. @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include -- 2.20.1