[glib/glib-2-32] Fix build on win32



commit d58a42fd38f9c2d39df308a93a1707ee007053c9
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
    (cherry picked from commit 2414d7d6a197e0c4b184607160d6cd8a378df177)

 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 bb9a242..dd05a24 100644
--- a/glib/tests/fileutils.c
+++ b/glib/tests/fileutils.c
@@ -545,7 +545,9 @@ test_file_errors (void)
   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]