summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@cvs.openbsd.org>2023-05-10 07:19:50 +0000
committerOmar Polo <op@cvs.openbsd.org>2023-05-10 07:19:50 +0000
commitb4c956e2e03b2bf6bb64163c2fc891d51d0e822b (patch)
treead8b0a6e5dcab29f180ea051d230cbef9728f62d
parent0cbcb6caaa93443f39062f60bdb46721e5dcbf9c (diff)
add a few missing headers, reduces the diff with -portable
ok millert@
-rw-r--r--usr.sbin/smtpd/mail.maildir.c1
-rw-r--r--usr.sbin/smtpd/parse.y4
2 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/mail.maildir.c b/usr.sbin/smtpd/mail.maildir.c
index c204caaf222..355831e894d 100644
--- a/usr.sbin/smtpd/mail.maildir.c
+++ b/usr.sbin/smtpd/mail.maildir.c
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
+#include <time.h>
#include <unistd.h>
#define MAILADDR_ESCAPE "!#$%&'*/?^`{|}~"
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y
index 4915bf6002c..42d396868dc 100644
--- a/usr.sbin/smtpd/parse.y
+++ b/usr.sbin/smtpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.291 2022/02/10 14:59:35 millert Exp $ */
+/* $OpenBSD: parse.y,v 1.292 2023/05/10 07:19:49 op Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -34,6 +34,8 @@
#include <ifaddrs.h>
#include <inttypes.h>
#include <resolv.h>
+#include <stdlib.h>
+#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include <util.h>