glibc-cross.patch 650 B

1234567891011121314151617181920212223242526
  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-08-19 02:37:42.912687500 +0200
  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