summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2024-08-18 02:20:30 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2024-08-18 02:20:30 +0000
commitcd06120d02a2608678631f4fba01e6364ffad3b4 (patch)
tree2956249b118b08cecd2e31ca2cd41d0b9bff787d /lib/libc
parentdc015343bac259f50f2661da4b38988aad9ffb33 (diff)
Pull in <stdio.h> (for snprintf()) directly instead of
assuming some local .h will pull it in ok deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/setlocale.c3
-rw-r--r--lib/libc/time/localtime.c3
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 <schwarze@openbsd.org>
*
@@ -16,6 +16,7 @@
*/
#include <locale.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
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 <errno.h>
#include <fcntl.h>
#include <stdint.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>