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.

73 lines
1.6 KiB

  1. --- a/src/libstrongswan/library.h
  2. +++ b/src/libstrongswan/library.h
  3. @@ -118,6 +118,7 @@
  4. #include "utils/leak_detective.h"
  5. #include "plugins/plugin_loader.h"
  6. #include "settings/settings.h"
  7. +#include "musl.h"
  8. typedef struct library_t library_t;
  9. --- /dev/null
  10. +++ b/src/libstrongswan/musl.h
  11. @@ -0,0 +1,27 @@
  12. +#include <sys/types.h>
  13. +
  14. +#define crypt x_crypt
  15. +#define encrypt x_encrypt
  16. +#include <unistd.h>
  17. +
  18. +#define fd_set x_fd_set
  19. +#define ino_t x_ino_t
  20. +#define off_t x_off_t
  21. +#define loff_t x_loff_t
  22. +#define dev_t x_dev_t
  23. +#define nlink_t x_nlink_t
  24. +#define timer_t x_timer_t
  25. +#define blkcnt_t x_blkcnt_t
  26. +#define __kernel_nlink_t void
  27. +
  28. +#include <linux/types.h>
  29. +
  30. +#undef fd_set
  31. +#undef ino_t
  32. +#undef off_t
  33. +#undef dev_t
  34. +#undef nlink_t
  35. +#undef timer_t
  36. +#undef blkcnt_t
  37. +#undef crypt
  38. +#undef encrypt
  39. --- a/src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c
  40. +++ b/src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c
  41. @@ -18,6 +18,8 @@
  42. * for more details.
  43. */
  44. +#include <musl.h>
  45. +
  46. #include <sys/types.h>
  47. #include <sys/socket.h>
  48. #include <stdint.h>
  49. --- a/src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c
  50. +++ b/src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c
  51. @@ -37,6 +37,8 @@
  52. * THE SOFTWARE.
  53. */
  54. +#include "musl.h"
  55. +
  56. #include <sys/socket.h>
  57. #include <sys/utsname.h>
  58. #include <linux/netlink.h>
  59. --- a/src/libhydra/plugins/kernel_netlink/kernel_netlink_shared.c
  60. +++ b/src/libhydra/plugins/kernel_netlink/kernel_netlink_shared.c
  61. @@ -15,6 +15,8 @@
  62. * for more details.
  63. */
  64. +#include "musl.h"
  65. +
  66. #include <sys/socket.h>
  67. #include <linux/netlink.h>
  68. #include <linux/rtnetlink.h>