[glib/glib-2-32] tests/fileutils: Fix Windows build



commit 274940b2476e99ea850da29215c1ce91d2bb85cf
Author: Kalev Lember <kalevlember gmail com>
Date:   Sat Apr 14 15:40:17 2012 +0300

    tests/fileutils: Fix Windows build

 glib/tests/fileutils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]