aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opensmtpd-extras/0002-wrap-stdint.h-in-autoconf-variables.patch
blob: c173626d514df9854828fb21ad17e842c0f5ba26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From b517268af8b467ed2937bd2ee0b47c07347c89b2 Mon Sep 17 00:00:00 2001
From: Jonas Maurus <jonas-github@maurus.net>
Date: Wed, 2 Nov 2016 22:50:35 +0100
Subject: [PATCH] wrap stdint.h in autoconf variables

Signed-off-by: Jonas Maurus <jonas-github@maurus.net>

Patch-Source: https://github.com/OpenSMTPD/OpenSMTPD-extras/commit/b517268af8b467ed2937bd2ee0b47c07347c89b2
---
 api/rfc2822.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/api/rfc2822.h b/api/rfc2822.h
index 0c35830..8bb0a8b 100644
--- a/api/rfc2822.h
+++ b/api/rfc2822.h
@@ -19,7 +19,9 @@
 #ifndef _RFC2822_H_
 #define	_RFC2822_H_
 
+#ifdef HAVE_STDINT_H
 #include <stdint.h>
+#endif
 
 #define	RFC2822_MAX_LINE_SIZE		4096
 
-- 
2.18.0