1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- --- a/src/libstrongswan/library.h
- +++ b/src/libstrongswan/library.h
- @@ -118,6 +118,7 @@
- #include "utils/leak_detective.h"
- #include "plugins/plugin_loader.h"
- #include "settings/settings.h"
- +#include "musl.h"
-
- typedef struct library_t library_t;
-
- --- /dev/null
- +++ b/src/libstrongswan/musl.h
- @@ -0,0 +1,38 @@
- +#include <sys/types.h>
- +
- +#define crypt x_crypt
- +#define encrypt x_encrypt
- +#include <unistd.h>
- +
- +#define fd_set x_fd_set
- +#define ino_t x_ino_t
- +#define off_t x_off_t
- +#define loff_t x_loff_t
- +#define dev_t x_dev_t
- +#define mode_t x_mode_t
- +#define uid_t x_uid_t
- +#define gid_t x_gid_t
- +#define uint64_t x_uint64_t
- +#define u_int64_t x_u_int64_t
- +#define int64_t x_int64_t
- +#define nlink_t x_nlink_t
- +#define timer_t x_timer_t
- +#define blkcnt_t x_blkcnt_t
- +
- +#include <linux/types.h>
- +
- +#undef fd_set
- +#undef ino_t
- +#undef off_t
- +#undef dev_t
- +#undef mode_t
- +#undef uid_t
- +#undef gid_t
- +#undef uint64_t
- +#undef u_int64_t
- +#undef int64_t
- +#undef nlink_t
- +#undef timer_t
- +#undef blkcnt_t
- +#undef crypt
- +#undef encrypt
- --- a/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c
- +++ b/src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c
- @@ -19,6 +19,7 @@
- */
-
- #define _GNU_SOURCE
- +#include <musl.h>
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <stdint.h>
- --- a/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c
- +++ b/src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c
- @@ -37,6 +37,8 @@
- * THE SOFTWARE.
- */
-
- +#include "musl.h"
- +
- #include <sys/socket.h>
- #include <sys/utsname.h>
- #include <linux/netlink.h>
- --- a/src/libcharon/plugins/kernel_netlink/kernel_netlink_shared.c
- +++ b/src/libcharon/plugins/kernel_netlink/kernel_netlink_shared.c
- @@ -38,6 +38,8 @@
- * THE SOFTWARE.
- */
-
- +#include "musl.h"
- +
- #include <sys/socket.h>
- #include <linux/netlink.h>
- #include <linux/rtnetlink.h>
|