1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00
freebsd/make-event-config.sed
Ed Maste cbc620a473 Import libevent 2.1.18
This will be used to replace the embedded libevent in ntp, for
OpenSSL 1.1.1 compatibility.

Sponsored by:	The FreeBSD Foundation
2018-09-24 16:32:10 +00:00

24 lines
588 B
Sed

# Sed script to postprocess config.h into event-config.h.
1i\
/* event2/event-config.h\
*\
* This file was generated by autoconf when libevent was built, and post-\
* processed by Libevent so that its macros would have a uniform prefix.\
*\
* DO NOT EDIT THIS FILE.\
*\
* Do not rely on macros in this file existing in later versions.\
*/\
\
#ifndef EVENT2_EVENT_CONFIG_H_INCLUDED_\
#define EVENT2_EVENT_CONFIG_H_INCLUDED_\
$a\
\
#endif /* event2/event-config.h */
s/#\( *\)define /#\1define EVENT__/
s/#\( *\)undef /#\1undef EVENT__/
s/#\( *\)if\(n*\)def /#\1if\2def EVENT__/