from trunk: make event_rpcgen.py generate code include event-config.h

svn:r687
This commit is contained in:
Niels Provos 2008-03-03 03:37:42 +00:00
parent d136059826
commit 534d32727a
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,7 @@ Changes in 1.4.3-stable:
o include Content-Length in reply for HTTP/1.0 requests with keep-alive
o Patch from Tani Hosokawa: make some functions in http.c threadsafe.
o Do not free the kqop file descriptor in other processes, also allow it to be 0; from Andrei Nigmatulin
o make event_rpcgen.py generate code include event-config.h; reported by Sam Banks.
Changes in 1.4.2-rc:
o remove pending timeouts on event_base_free()

View File

@ -1306,7 +1306,11 @@ def HeaderPreamble(name):
name, guard, guard)
# insert stdint.h - let's hope everyone has it
pre += '#include <stdint.h>\n'
pre += (
'#include <event-config.h>\n'
'#ifdef _EVENT_HAVE_STDINT_H\n'
'#include <stdint.h>\n'
'#endif\n' )
for statement in headerdirect:
pre += '%s\n' % statement