glibc-cross.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. diff -Nur glibc-2.22.orig/sunrpc/rpc_main.c glibc-2.22/sunrpc/rpc_main.c
  2. --- glibc-2.22.orig/sunrpc/rpc_main.c 2015-08-05 08:42:21.000000000 +0200
  3. +++ glibc-2.22/sunrpc/rpc_main.c 2015-12-08 06:21:38.000000000 +0100
  4. @@ -38,7 +38,11 @@
  5. #include <stdio.h>
  6. #include <string.h>
  7. #include <unistd.h>
  8. +#if defined(__APPLE__) || defined(__CYGWIN__)
  9. +#define gettext(X) (X)
  10. +#else
  11. #include <libintl.h>
  12. +#endif
  13. #include <locale.h>
  14. #include <ctype.h>
  15. #include <sys/types.h>
  16. @@ -51,6 +55,10 @@
  17. #include "rpc_scan.h"
  18. #include "proto.h"
  19. +#ifdef __CYGWIN__
  20. +#define stat64 stat
  21. +#endif
  22. +
  23. #include "../version.h"
  24. #define PACKAGE _libc_intl_domainname
  25. diff -Nur glibc-2.22.orig/sunrpc/rpc_scan.c glibc-2.22/sunrpc/rpc_scan.c
  26. --- glibc-2.22.orig/sunrpc/rpc_scan.c 2015-08-05 08:42:21.000000000 +0200
  27. +++ glibc-2.22/sunrpc/rpc_scan.c 2015-12-08 06:22:36.000000000 +0100
  28. @@ -37,7 +37,11 @@
  29. #include <stdio.h>
  30. #include <ctype.h>
  31. #include <string.h>
  32. +#if defined(__APPLE__) || defined(__CYGWIN__)
  33. +#define gettext(X) (X)
  34. +#else
  35. #include <libintl.h>
  36. +#endif
  37. #include "rpc_scan.h"
  38. #include "rpc_parse.h"
  39. #include "rpc_util.h"