You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

300 lines
9.8 KiB

  1. diff -rupN seafile-ccnet-4.1.2.orig/include/ccnet/ccnet-client.h seafile-ccnet-4.1.2/include/ccnet/ccnet-client.h
  2. --- seafile-ccnet-4.1.2.orig/include/ccnet/ccnet-client.h 2015-09-09 18:49:35.000000000 +0200
  3. +++ seafile-ccnet-4.1.2/include/ccnet/ccnet-client.h 2015-09-09 19:22:23.515461892 +0200
  4. @@ -10,11 +10,7 @@
  5. #include <glib.h>
  6. #include <glib-object.h>
  7. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  8. #include <event2/util.h>
  9. -#else
  10. -#include <evutil.h>
  11. -#endif
  12. #include "ccnet-session-base.h"
  13. diff -rupN seafile-ccnet-4.1.2.orig/include/ccnet/cevent.h seafile-ccnet-4.1.2/include/ccnet/cevent.h
  14. --- seafile-ccnet-4.1.2.orig/include/ccnet/cevent.h 2015-09-09 18:49:35.000000000 +0200
  15. +++ seafile-ccnet-4.1.2/include/ccnet/cevent.h 2015-09-09 19:22:23.516461920 +0200
  16. @@ -6,13 +6,9 @@
  17. #ifndef CEVENT_H
  18. #define CEVENT_H
  19. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  20. #include <event2/event.h>
  21. #include <event2/event_compat.h>
  22. #include <event2/event_struct.h>
  23. -#else
  24. -#include <event.h>
  25. -#endif
  26. #include <glib.h>
  27. diff -rupN seafile-ccnet-4.1.2.orig/lib/job-mgr.c seafile-ccnet-4.1.2/lib/job-mgr.c
  28. --- seafile-ccnet-4.1.2.orig/lib/job-mgr.c 2015-09-09 18:49:35.000000000 +0200
  29. +++ seafile-ccnet-4.1.2/lib/job-mgr.c 2015-09-09 19:22:23.516461920 +0200
  30. @@ -1,11 +1,7 @@
  31. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  32. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  33. #include <event2/event.h>
  34. #include <event2/event_compat.h>
  35. -#else
  36. -#include <event.h>
  37. -#endif
  38. #include <string.h>
  39. #include <stdlib.h>
  40. diff -rupN seafile-ccnet-4.1.2.orig/lib/libccnet_utils.h seafile-ccnet-4.1.2/lib/libccnet_utils.h
  41. --- seafile-ccnet-4.1.2.orig/lib/libccnet_utils.h 2015-09-09 18:49:35.000000000 +0200
  42. +++ seafile-ccnet-4.1.2/lib/libccnet_utils.h 2015-09-09 19:22:23.517461948 +0200
  43. @@ -15,11 +15,7 @@
  44. #include <glib-object.h>
  45. #include <stdlib.h>
  46. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  47. #include <event2/util.h>
  48. -#else
  49. -#include <evutil.h>
  50. -#endif
  51. #ifdef WIN32
  52. #include <errno.h>
  53. diff -rupN seafile-ccnet-4.1.2.orig/lib/mainloop.c seafile-ccnet-4.1.2/lib/mainloop.c
  54. --- seafile-ccnet-4.1.2.orig/lib/mainloop.c 2015-09-09 18:49:35.000000000 +0200
  55. +++ seafile-ccnet-4.1.2/lib/mainloop.c 2015-09-09 19:22:23.517461948 +0200
  56. @@ -3,13 +3,9 @@
  57. #include "include.h"
  58. #include <ccnet.h>
  59. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  60. #include <event2/event.h>
  61. #include <event2/event_compat.h>
  62. #include <event2/event_struct.h>
  63. -#else
  64. -#include <event.h>
  65. -#endif
  66. static int
  67. cmdrsp_cb (const char *code, char *content, int clen, void *data)
  68. diff -rupN seafile-ccnet-4.1.2.orig/lib/net.h seafile-ccnet-4.1.2/lib/net.h
  69. --- seafile-ccnet-4.1.2.orig/lib/net.h 2015-09-09 18:49:35.000000000 +0200
  70. +++ seafile-ccnet-4.1.2/lib/net.h 2015-09-09 19:22:23.517461948 +0200
  71. @@ -19,11 +19,7 @@
  72. #include <netinet/tcp.h>
  73. #endif
  74. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  75. #include <event2/util.h>
  76. -#else
  77. -#include <evutil.h>
  78. -#endif
  79. #ifdef WIN32
  80. #define ECONNREFUSED WSAECONNREFUSED
  81. diff -rupN seafile-ccnet-4.1.2.orig/lib/packet-io.h seafile-ccnet-4.1.2/lib/packet-io.h
  82. --- seafile-ccnet-4.1.2.orig/lib/packet-io.h 2015-09-09 18:49:35.000000000 +0200
  83. +++ seafile-ccnet-4.1.2/lib/packet-io.h 2015-09-09 19:22:23.518461976 +0200
  84. @@ -5,11 +5,7 @@
  85. #include <packet.h>
  86. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  87. #include <event2/util.h>
  88. -#else
  89. -#include <evutil.h>
  90. -#endif
  91. struct buffer;
  92. diff -rupN seafile-ccnet-4.1.2.orig/lib/processor.c seafile-ccnet-4.1.2/lib/processor.c
  93. --- seafile-ccnet-4.1.2.orig/lib/processor.c 2015-09-09 18:49:35.000000000 +0200
  94. +++ seafile-ccnet-4.1.2/lib/processor.c 2015-09-09 19:22:23.518461976 +0200
  95. @@ -4,11 +4,7 @@
  96. #include <pthread.h>
  97. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  98. #include <event2/event.h>
  99. -#else
  100. -#include <event.h>
  101. -#endif
  102. #include "ccnet-client.h"
  103. #include "processor.h"
  104. diff -rupN seafile-ccnet-4.1.2.orig/lib/timer.c seafile-ccnet-4.1.2/lib/timer.c
  105. --- seafile-ccnet-4.1.2.orig/lib/timer.c 2015-09-09 18:49:35.000000000 +0200
  106. +++ seafile-ccnet-4.1.2/lib/timer.c 2015-09-09 19:22:23.519462004 +0200
  107. @@ -1,12 +1,8 @@
  108. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  109. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  110. #include <event2/event.h>
  111. #include <event2/event_compat.h>
  112. #include <event2/event_struct.h>
  113. -#else
  114. -#include <event.h>
  115. -#endif
  116. #include <sys/time.h>
  117. diff -rupN seafile-ccnet-4.1.2.orig/lib/utils.h seafile-ccnet-4.1.2/lib/utils.h
  118. --- seafile-ccnet-4.1.2.orig/lib/utils.h 2015-09-09 18:49:35.000000000 +0200
  119. +++ seafile-ccnet-4.1.2/lib/utils.h 2015-09-09 19:22:23.519462004 +0200
  120. @@ -11,11 +11,7 @@
  121. #include <glib-object.h>
  122. #include <stdlib.h>
  123. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  124. #include <event2/util.h>
  125. -#else
  126. -#include <evutil.h>
  127. -#endif
  128. #ifdef WIN32
  129. #include <errno.h>
  130. diff -rupN seafile-ccnet-4.1.2.orig/net/cluster/server.c seafile-ccnet-4.1.2/net/cluster/server.c
  131. --- seafile-ccnet-4.1.2.orig/net/cluster/server.c 2015-09-09 18:49:35.000000000 +0200
  132. +++ seafile-ccnet-4.1.2/net/cluster/server.c 2015-09-09 19:24:33.800125741 +0200
  133. @@ -6,11 +6,7 @@
  134. #include <stdio.h>
  135. #include <getopt.h>
  136. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  137. #include <event2/dns.h>
  138. -#else
  139. -#include <evdns.h>
  140. -#endif
  141. #include "inner-session.h"
  142. #include "outer-session.h"
  143. diff -rupN seafile-ccnet-4.1.2.orig/net/common/connect-mgr.h seafile-ccnet-4.1.2/net/common/connect-mgr.h
  144. --- seafile-ccnet-4.1.2.orig/net/common/connect-mgr.h 2015-09-09 18:49:35.000000000 +0200
  145. +++ seafile-ccnet-4.1.2/net/common/connect-mgr.h 2015-09-09 19:22:23.520462032 +0200
  146. @@ -3,11 +3,7 @@
  147. #ifndef CCNET_CONNECTION_MANAGER
  148. #define CCNET_CONNECTION_MANAGER
  149. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  150. #include <event2/event.h>
  151. -#else
  152. -#include <event.h>
  153. -#endif
  154. #include "timer.h"
  155. diff -rupN seafile-ccnet-4.1.2.orig/net/common/packet-io.c seafile-ccnet-4.1.2/net/common/packet-io.c
  156. --- seafile-ccnet-4.1.2.orig/net/common/packet-io.c 2015-09-09 18:49:35.000000000 +0200
  157. +++ seafile-ccnet-4.1.2/net/common/packet-io.c 2015-09-09 19:22:23.521462060 +0200
  158. @@ -13,13 +13,9 @@
  159. #include <unistd.h>
  160. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  161. #include <event2/event.h>
  162. #include <event2/bufferevent.h>
  163. #include <event2/bufferevent_struct.h>
  164. -#else
  165. -#include <event.h>
  166. -#endif
  167. #include <glib.h>
  168. #include <errno.h>
  169. diff -rupN seafile-ccnet-4.1.2.orig/net/common/packet-io.h seafile-ccnet-4.1.2/net/common/packet-io.h
  170. --- seafile-ccnet-4.1.2.orig/net/common/packet-io.h 2015-09-09 18:49:35.000000000 +0200
  171. +++ seafile-ccnet-4.1.2/net/common/packet-io.h 2015-09-09 19:22:23.521462060 +0200
  172. @@ -5,13 +5,9 @@
  173. #include "packet.h"
  174. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  175. #include <event2/util.h>
  176. #include <event2/buffer.h>
  177. #include <event2/buffer_compat.h>
  178. -#else
  179. -#include <evutil.h>
  180. -#endif
  181. /* struct evbuffer; */
  182. /* for libevent2 */
  183. diff -rupN seafile-ccnet-4.1.2.orig/net/common/peer.c seafile-ccnet-4.1.2/net/common/peer.c
  184. --- seafile-ccnet-4.1.2.orig/net/common/peer.c 2015-09-09 18:49:35.000000000 +0200
  185. +++ seafile-ccnet-4.1.2/net/common/peer.c 2015-09-09 19:22:23.522462088 +0200
  186. @@ -2,14 +2,10 @@
  187. #include "common.h"
  188. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  189. #include <event2/event.h>
  190. #include <event2/bufferevent.h>
  191. #include <event2/bufferevent_compat.h>
  192. #include <event2/bufferevent_struct.h>
  193. -#else
  194. -#include <event.h>
  195. -#endif
  196. #include <stdio.h>
  197. #include <stdlib.h>
  198. diff -rupN seafile-ccnet-4.1.2.orig/net/common/session.h seafile-ccnet-4.1.2/net/common/session.h
  199. --- seafile-ccnet-4.1.2.orig/net/common/session.h 2015-09-09 18:49:35.000000000 +0200
  200. +++ seafile-ccnet-4.1.2/net/common/session.h 2015-09-09 19:22:23.523462116 +0200
  201. @@ -3,13 +3,9 @@
  202. #ifndef CCNET_SESSION_H
  203. #define CCNET_SESSION_H
  204. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  205. #include <event2/event.h>
  206. #include <event2/event_compat.h>
  207. #include <event2/event_struct.h>
  208. -#else
  209. -#include <event.h>
  210. -#endif
  211. #include <glib.h>
  212. #include <glib/gstdio.h>
  213. diff -rupN seafile-ccnet-4.1.2.orig/net/daemon/ccnet-daemon.c seafile-ccnet-4.1.2/net/daemon/ccnet-daemon.c
  214. --- seafile-ccnet-4.1.2.orig/net/daemon/ccnet-daemon.c 2015-09-09 18:49:35.000000000 +0200
  215. +++ seafile-ccnet-4.1.2/net/daemon/ccnet-daemon.c 2015-09-09 19:24:59.313846178 +0200
  216. @@ -6,12 +6,8 @@
  217. #include <stdio.h>
  218. #include <getopt.h>
  219. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  220. #include <event2/dns.h>
  221. #include <event2/dns_compat.h>
  222. -#else
  223. -#include <evdns.h>
  224. -#endif
  225. #include "daemon-session.h"
  226. #include "rpc-service.h"
  227. diff -rupN seafile-ccnet-4.1.2.orig/net/daemon/ccnet-test.c seafile-ccnet-4.1.2/net/daemon/ccnet-test.c
  228. --- seafile-ccnet-4.1.2.orig/net/daemon/ccnet-test.c 2015-09-09 18:49:35.000000000 +0200
  229. +++ seafile-ccnet-4.1.2/net/daemon/ccnet-test.c 2015-09-09 19:24:45.089444412 +0200
  230. @@ -5,11 +5,7 @@
  231. #include <stdio.h>
  232. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  233. #include <event2/dns.h>
  234. -#else
  235. -#include <evdns.h>
  236. -#endif
  237. #include "utils.h"
  238. diff -rupN seafile-ccnet-4.1.2.orig/net/server/ccnet-server.c seafile-ccnet-4.1.2/net/server/ccnet-server.c
  239. --- seafile-ccnet-4.1.2.orig/net/server/ccnet-server.c 2015-09-09 18:49:35.000000000 +0200
  240. +++ seafile-ccnet-4.1.2/net/server/ccnet-server.c 2015-09-09 19:25:53.967392265 +0200
  241. @@ -6,11 +6,7 @@
  242. #include <stdio.h>
  243. #include <getopt.h>
  244. -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  245. #include <event2/dns.h>
  246. -#else
  247. -#include <evdns.h>
  248. -#endif
  249. #include "server-session.h"
  250. #include "user-mgr.h"