summaryrefslogtreecommitdiff
path: root/package/strace/patches/patch-net_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-08-14 12:51:52 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-08-14 12:51:52 +0200
commita7ced5ec9a36f2142d404053dc384ae3af1fe047 (patch)
tree0fbc32d5e91d00450a65d146c328966877b56e65 /package/strace/patches/patch-net_c
parente2692cea04fe08014537bbecf5fb52033cb463e2 (diff)
parent47ba3ba77f0a108450c5536daf77271125953966 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/strace/patches/patch-net_c')
-rw-r--r--package/strace/patches/patch-net_c19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/strace/patches/patch-net_c b/package/strace/patches/patch-net_c
new file mode 100644
index 000000000..a3c31d2ae
--- /dev/null
+++ b/package/strace/patches/patch-net_c
@@ -0,0 +1,19 @@
+--- strace-4.8.orig/net.c 2013-05-18 00:20:02.000000000 +0200
++++ strace-4.8/net.c 2013-08-14 08:46:21.000000000 +0200
+@@ -94,13 +94,15 @@
+ # define PF_UNSPEC AF_UNSPEC
+ #endif
+
+-/* Under Linux these are enums so we can't test for them with ifdef. */
++/* Under Linux (glibc/uclibc) these are enums so we can't test for them with ifdef. */
++#if defined(__GLIBC__) || defined(__UCLIBC__)
+ #define IPPROTO_EGP IPPROTO_EGP
+ #define IPPROTO_PUP IPPROTO_PUP
+ #define IPPROTO_IDP IPPROTO_IDP
+ #define IPPROTO_IGMP IPPROTO_IGMP
+ #define IPPROTO_RAW IPPROTO_RAW
+ #define IPPROTO_MAX IPPROTO_MAX
++#endif
+
+ static const struct xlat domains[] = {
+ #ifdef PF_UNSPEC