summaryrefslogtreecommitdiff
path: root/devel/libevent/patches/patch-ac
blob: 96bf315ebac3fad2de8ea572c2ebffae1a31820c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ac,v 1.3 2007/10/04 06:06:19 dmcmahill Exp $

--- test/regress.gen.h.orig	2007-08-16 00:51:57.000000000 -0400
+++ test/regress.gen.h
@@ -5,7 +5,16 @@
 #ifndef _REGRESS_RPC_
 #define _REGRESS_RPC_
 
-#include <stdint.h>
+#include "config.h"
+
+#ifdef HAVE_STDINT_H
+#  include <stdint.h>
+#elif defined(HAVE_INTTYPES_H)
+#  include <inttypes.h>
+#else
+#  error No inttypes.h or stdint.h to give integer types
+#endif
+
 #define EVTAG_HAS(msg, member) ((msg)->member##_set == 1)
 #define EVTAG_ASSIGN(msg, member, args...) (*(msg)->member##_assign)(msg, ## args)
 #define EVTAG_GET(msg, member, args...) (*(msg)->member##_get)(msg, ## args)