From: Niels Provos Date: Mon, 3 Mar 2008 03:36:51 +0000 (+0000) Subject: make event_rpcgen.py generate code include event-config.h X-Git-Tag: release-2.0.1-alpha~397 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5c15b2ebb609414358216cd62ca135b5658c104;p=libevent make event_rpcgen.py generate code include event-config.h svn:r686 --- diff --git a/ChangeLog b/ChangeLog index c172189f..2d774039 100644 --- a/ChangeLog +++ b/ChangeLog @@ -57,6 +57,7 @@ Changes in current version: o Some older Solaris versions demand that _REENTRANT be defined to get strtok_r(); do so. o Do not free the kqop file descriptor in other processes, also allow it to be 0; from Andrei Nigmatulin o Provide OpenSSL style support for multiple threads accessing the same event_base + o make event_rpcgen.py generate code include event-config.h; reported by Sam Banks. Changes in 1.4.0: o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr. diff --git a/event_rpcgen.py b/event_rpcgen.py index 13384b46..a11af31e 100755 --- a/event_rpcgen.py +++ b/event_rpcgen.py @@ -1508,7 +1508,11 @@ def HeaderPreamble(name): name, guard, guard) # insert stdint.h - let's hope everyone has it - pre += '#include \n' + pre += ( + '#include \n' + '#ifdef _EVENT_HAVE_STDINT_H\n' + '#include \n' + '#endif\n' ) for statement in headerdirect: pre += '%s\n' % statement