… | |
… | |
12 | } |
12 | } |
13 | if (/#include "misc.h"/) { |
13 | if (/#include "misc.h"/) { |
14 | print "#ifndef EV_STANDALONE\n$_#endif\n"; |
14 | print "#ifndef EV_STANDALONE\n$_#endif\n"; |
15 | next; |
15 | next; |
16 | } |
16 | } |
17 | if (/#include "(unistd.h|sys/time.h)"/) { |
17 | if (/#include "(unistd.h|sys\/time.h)"/) { |
18 | print "#ifndef WIN32\n$_#endif\n"; |
18 | print "#ifndef WIN32\n$_#endif\n"; |
19 | next; |
19 | next; |
20 | } |
20 | } |
21 | next if /#include "log.h"/; |
21 | next if /#include "log.h"/; |
22 | |
22 | |
… | |
… | |
66 | s/\bpoll.c\b//g; |
66 | s/\bpoll.c\b//g; |
67 | s/\bepoll.c\b//g; |
67 | s/\bepoll.c\b//g; |
68 | s/\bepoll_sub.c\b//g; |
68 | s/\bepoll_sub.c\b//g; |
69 | s/\bevent-internal.h\b//g; |
69 | s/\bevent-internal.h\b//g; |
70 | s/\bevsignal.h\b//g; |
70 | s/\bevsignal.h\b//g; |
71 | s/^(EXTRA_DIST\s*=\s*)/$1 ev.h ev_vars.h ev_wrap.h event_compat.h ev_epoll.c ev_select.c ev_poll.c ev_kqueue.c /; |
71 | s/^(EXTRA_DIST\s*=\s*)/$1 ev.h ev_vars.h ev_wrap.h event_compat.h ev_epoll.c ev_select.c ev_poll.c ev_kqueue.c ev_win32.c /; |
72 | s/^(include_HEADERS\s*=\s*)/$1 ev.h event_compat.h /; |
72 | s/^(include_HEADERS\s*=\s*)/$1 ev.h event_compat.h /; |
73 | s/^(libevent_la_SOURCES\s*=\s*)/$1 ev.c /; |
73 | s/^(libevent_la_SOURCES\s*=\s*)/$1 ev.c /; |
74 | s/^(libevent_la_LIBADD\s*=\s*)/$1 -lm /; |
74 | s/^(libevent_la_LIBADD\s*=\s*)/$1 -lm /; |
75 | s/libevent/libev/g; |
75 | s/libevent/libev/g; |
76 | print; |
76 | print; |