[glib/gdbus-daemon] Fix build on win32



commit 193fee8b5deefc431660e9a7715b73abc80e0205
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Apr 17 15:50:01 2012 +0200

    Fix build on win32
    
    Some errnos don't exist on win32

 glib/tests/fileutils.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/fileutils.c b/glib/tests/fileutils.c
index befb71b..dd05a24 100644
--- a/glib/tests/fileutils.c
+++ b/glib/tests/fileutils.c
@@ -541,9 +541,13 @@ 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);
+#ifdef ELOOP
   g_assert (g_file_error_from_errno (ELOOP) == G_FILE_ERROR_LOOP);
+#endif
   g_assert (g_file_error_from_errno (ENOSPC) == G_FILE_ERROR_NOSPC);
   g_assert (g_file_error_from_errno (ENOMEM) == G_FILE_ERROR_NOMEM);
   g_assert (g_file_error_from_errno (EMFILE) == G_FILE_ERROR_MFILE);



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