summaryrefslogtreecommitdiff
path: root/libs/libevent/docs/make-event-config.sed
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libevent/docs/make-event-config.sed')
-rw-r--r--libs/libevent/docs/make-event-config.sed23
1 files changed, 23 insertions, 0 deletions
diff --git a/libs/libevent/docs/make-event-config.sed b/libs/libevent/docs/make-event-config.sed
new file mode 100644
index 0000000000..e31018a2dd
--- /dev/null
+++ b/libs/libevent/docs/make-event-config.sed
@@ -0,0 +1,23 @@
+# 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__/