Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2KB

  1. From 4745c08220b90eac741ae3ca1913cbe90c9831ef Mon Sep 17 00:00:00 2001
  2. From: Benjamin Gilbert <bgilbert@backtick.net>
  3. Date: Sat, 26 Sep 2015 18:22:34 -0400
  4. Subject: [PATCH] win32: Fix link error with _wstat32i64() on 64-bit
  5. _wstat32i64() doesn't exist in msvcrt.dll. This doesn't cause a problem
  6. on 32-bit Windows because mingw-w64 #defines _wstat32i64 to _wstati64,
  7. but on 64-bit Windows we get a link error.
  8. In addition, _wstat32i64() takes a struct _stat32i64 *, but
  9. GLocalFileStat is #defined to struct _stati64, which is not the same
  10. type on 64-bit Windows.
  11. Fix by using _wstati64().
  12. https://bugzilla.gnome.org/show_bug.cgi?id=749161
  13. ---
  14. gio/glocalfile.c | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. diff --git a/gio/glocalfile.c b/gio/glocalfile.c
  17. index 327fe6fda..60b95609e 100644
  18. --- a/gio/glocalfile.c
  19. +++ b/gio/glocalfile.c
  20. @@ -2682,7 +2682,7 @@ g_local_file_measure_size_of_file (gint parent_fd,
  21. (!g_path_is_absolute (filename) || len > g_path_skip_root (filename) - filename))
  22. wfilename[len] = '\0';
  23. - retval = _wstat32i64 (wfilename, &buf);
  24. + retval = _wstati64 (wfilename, &buf);
  25. save_errno = errno;
  26. g_free (wfilename);
  27. --
  28. GitLab