diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-04-26 08:58:17 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-04-26 20:20:26 +0200 |
commit | 7d9d71e67f8763b0db96545e124c002fe0ba7e73 (patch) | |
tree | dd807d86e63727df9c864fde0866d8ccbf9a7feb /package/mtd-utils/patches/patch-misc-utils_recv_image_c | |
parent | 0510be4cc4affbc497040486d3d4a0a271985ba9 (diff) |
mtd-utils: allow host-tools to compile on Darwin
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'package/mtd-utils/patches/patch-misc-utils_recv_image_c')
-rw-r--r-- | package/mtd-utils/patches/patch-misc-utils_recv_image_c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/mtd-utils/patches/patch-misc-utils_recv_image_c b/package/mtd-utils/patches/patch-misc-utils_recv_image_c new file mode 100644 index 000000000..ab07ab59a --- /dev/null +++ b/package/mtd-utils/patches/patch-misc-utils_recv_image_c @@ -0,0 +1,13 @@ +--- mtd-utils-2.0.0.orig/misc-utils/recv_image.c 2016-07-12 14:16:45.000000000 +0200 ++++ mtd-utils-2.0.0/misc-utils/recv_image.c 2017-04-26 09:06:48.000000000 +0200 +@@ -4,6 +4,10 @@ + #define _BSD_SOURCE /* struct ip_mreq */ + #define _DEFAULT_SOURCE + ++#ifndef IPV6_ADD_MEMBERSHIP ++#define IPV6_ADD_MEMBERSHIP 20 ++#endif ++ + #include <errno.h> + #include <stdio.h> + #include <netdb.h> |