patch-net_c 655 B

12345678910111213141516171819
  1. --- strace-4.8.orig/net.c 2013-05-18 00:20:02.000000000 +0200
  2. +++ strace-4.8/net.c 2013-08-14 08:46:21.000000000 +0200
  3. @@ -94,13 +94,15 @@
  4. # define PF_UNSPEC AF_UNSPEC
  5. #endif
  6. -/* Under Linux these are enums so we can't test for them with ifdef. */
  7. +/* Under Linux (glibc/uclibc) these are enums so we can't test for them with ifdef. */
  8. +#if defined(__GLIBC__) || defined(__UCLIBC__)
  9. #define IPPROTO_EGP IPPROTO_EGP
  10. #define IPPROTO_PUP IPPROTO_PUP
  11. #define IPPROTO_IDP IPPROTO_IDP
  12. #define IPPROTO_IGMP IPPROTO_IGMP
  13. #define IPPROTO_RAW IPPROTO_RAW
  14. #define IPPROTO_MAX IPPROTO_MAX
  15. +#endif
  16. static const struct xlat domains[] = {
  17. #ifdef PF_UNSPEC