OpenSDE Packages Database (without history before r20070)
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.

70 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../conntrack-tools/0003-include-sys-select.h.patch
  5. # Copyright (C) 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. include sys/select.h to get fd_set
  17. --- ./src/udp.c.orig 2013-09-01 01:47:48.965734257 +0200
  18. +++ ./src/udp.c 2013-09-01 01:49:11.671609969 +0200
  19. @@ -7,8 +7,6 @@
  20. * (at your option) any later version.
  21. */
  22. -#include "udp.h"
  23. -
  24. #include <stdio.h>
  25. #include <stdlib.h>
  26. #include <arpa/inet.h>
  27. @@ -18,6 +16,9 @@
  28. #include <net/if.h>
  29. #include <errno.h>
  30. #include <limits.h>
  31. +#include <sys/select.h>
  32. +
  33. +#include "udp.h"
  34. struct udp_sock *udp_server_create(struct udp_conf *conf)
  35. {
  36. --- ./src/tcp.c.orig 2013-09-01 02:22:00.461217706 +0200
  37. +++ ./src/tcp.c 2013-09-01 02:24:13.520277224 +0200
  38. @@ -9,8 +9,6 @@
  39. * TCP support has been sponsored by 6WIND <www.6wind.com>.
  40. */
  41. -#include "tcp.h"
  42. -
  43. #include <stdio.h>
  44. #include <stdlib.h>
  45. #include <arpa/inet.h>
  46. @@ -21,7 +19,9 @@
  47. #include <errno.h>
  48. #include <fcntl.h>
  49. #include <limits.h>
  50. +#include <sys/select.h>
  51. +#include "tcp.h"
  52. #include "conntrackd.h"
  53. #include "fds.h"
  54. --- ./include/mcast.h.orig 2013-09-01 02:42:11.601231152 +0200
  55. +++ ./include/mcast.h 2013-09-01 02:42:57.838277721 +0200
  56. @@ -4,6 +4,7 @@
  57. #include <stdint.h>
  58. #include <netinet/in.h>
  59. #include <net/if.h>
  60. +#include <sys/select.h> /* for fd_set */
  61. struct mcast_conf {
  62. int ipproto;