mingw-glib2/0001-tests-fileutils-Fix-Windows-build.patch
Kalev Lember cc7ce06edd Update to 2.32.1
- Dropped an upstreamed patch
- Added two new patches to fix build
2012-04-14 15:49:50 +03:00

27 lines
996 B
Diff

From 8386c6e3f913248eb6944ba4351ad1592cb74dba Mon Sep 17 00:00:00 2001
From: Kalev Lember <kalevlember@gmail.com>
Date: Sat, 14 Apr 2012 15:40:17 +0300
Subject: [PATCH 1/2] tests/fileutils: Fix Windows build
---
glib/tests/fileutils.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/glib/tests/fileutils.c b/glib/tests/fileutils.c
index befb71b..bb9a242 100644
--- a/glib/tests/fileutils.c
+++ b/glib/tests/fileutils.c
@@ -541,7 +541,9 @@ test_file_errors (void)
g_assert (g_file_error_from_errno (ENXIO) == G_FILE_ERROR_NXIO);
g_assert (g_file_error_from_errno (ENODEV) == G_FILE_ERROR_NODEV);
g_assert (g_file_error_from_errno (EROFS) == G_FILE_ERROR_ROFS);
+#ifdef ETXTBSY
g_assert (g_file_error_from_errno (ETXTBSY) == G_FILE_ERROR_TXTBSY);
+#endif
g_assert (g_file_error_from_errno (EFAULT) == G_FILE_ERROR_FAULT);
g_assert (g_file_error_from_errno (ELOOP) == G_FILE_ERROR_LOOP);
g_assert (g_file_error_from_errno (ENOSPC) == G_FILE_ERROR_NOSPC);
--
1.7.10