diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-01 20:19:13 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-01 20:19:13 +0100 |
commit | 8207b8d44693503e1c086aea0fc30c592a59b15d (patch) | |
tree | 8ebb77c7ae0097d4877bed3099a49ce7518a2f63 /package/quagga/patches/patch-lib_sockopt_c | |
parent | f3f7a7f082ffce3fe30555c73276f4c070c0b6da (diff) |
another round of updates and musl fixes
Diffstat (limited to 'package/quagga/patches/patch-lib_sockopt_c')
-rw-r--r-- | package/quagga/patches/patch-lib_sockopt_c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/quagga/patches/patch-lib_sockopt_c b/package/quagga/patches/patch-lib_sockopt_c new file mode 100644 index 000000000..c33333766 --- /dev/null +++ b/package/quagga/patches/patch-lib_sockopt_c @@ -0,0 +1,23 @@ +--- quagga-0.99.22.4.orig/lib/sockopt.c 2013-04-14 14:46:07.000000000 +0200 ++++ quagga-0.99.22.4/lib/sockopt.c 2013-12-30 19:56:54.000000000 +0100 +@@ -24,6 +24,20 @@ + #include "sockopt.h" + #include "sockunion.h" + ++#if !defined(__GLIBC__) ++/* For TCP_MD5SIG socket option. */ ++#define TCP_MD5SIG_MAXKEYLEN 80 ++ ++struct tcp_md5sig ++{ ++ struct sockaddr_storage tcpm_addr; /* Address associated. */ ++ u_int16_t __tcpm_pad1; /* Zero. */ ++ u_int16_t tcpm_keylen; /* Key length. */ ++ u_int32_t __tcpm_pad2; /* Zero. */ ++ u_int8_t tcpm_key[TCP_MD5SIG_MAXKEYLEN]; /* Key (binary). */ ++}; ++#endif ++ + int + setsockopt_so_recvbuf (int sock, int size) + { |