config.h can't be prefixed unconditionally
authorPhilip Prindeville <philipp@redfish-solutions.com>
Wed, 18 Apr 2018 21:09:35 +0000 (15:09 -0600)
committerAzat Khuzhin <a3at.mail@gmail.com>
Thu, 7 Jun 2018 23:14:38 +0000 (02:14 +0300)
commit587e9f5828c4eb3c6e79e9eb29f174e4ae0c05bd
tree586c04a4f4ddda36f54c2b46d41e1941ca325103
parentc57f5c34903b02c6e7378865f71a2b83a5befb96
config.h can't be prefixed unconditionally

The script make-event-config.sed was mangling all the symbols by
prefixing them with "EVENT__".  The problem here is that some
symbols aren't for local consumption within libevent, but rather
influence other system header files (ex: __USE_FILE_OFFSET64 is
used by dozens of header files including <sys/sendfile.h>).

As a workaround, all symbols starting with a capital letter only
(with the exception of STDC_HEADERS which must also be left
untouched) will be mangled.

Future contributors will need to be aware of this distinction.
make-event-config.sed