[beast/win32: 18/44] Use SFI_OS_ELOOP to make code compile on systems without errno ELOOP.



commit 6318c97c530bce01e5c170703a29e3d3b8dc9d9c
Author: Stefan Westerfeld <stefan space twc de>
Date:   Wed Sep 2 08:49:23 2009 +0200

    Use SFI_OS_ELOOP to make code compile on systems without errno ELOOP.
    
    Changes based on 008_misc_fixes.diff.

 beast-gtk/bstgconfig.c     |    4 ++--
 beast-gtk/bstkeybindings.c |    4 ++--
 beast-gtk/bstmsgabsorb.c   |    4 ++--
 beast-gtk/bstskinconfig.c  |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/beast-gtk/bstgconfig.c b/beast-gtk/bstgconfig.c
index ea02deb..be418ae 100644
--- a/beast-gtk/bstgconfig.c
+++ b/beast-gtk/bstgconfig.c
@@ -253,8 +253,8 @@ bst_rc_parse (const gchar *file_name)
 
   fd = open (file_name, O_RDONLY, 0);
   if (fd < 0)
-    return (errno == ENOENT || errno == ENOTDIR || errno == ELOOP ?
-	    BSE_ERROR_FILE_NOT_FOUND : BSE_ERROR_IO);
+    return (errno == ENOENT || errno == ENOTDIR || errno == SFI_OS_ELOOP
+          ? BSE_ERROR_FILE_NOT_FOUND : BSE_ERROR_IO);
 
   rstore = sfi_rstore_new ();
   sfi_rstore_input_fd (rstore, fd, file_name);
diff --git a/beast-gtk/bstkeybindings.c b/beast-gtk/bstkeybindings.c
index e68929c..a9398a3 100644
--- a/beast-gtk/bstkeybindings.c
+++ b/beast-gtk/bstkeybindings.c
@@ -705,8 +705,8 @@ bst_key_binding_parse (const gchar *file_name,
   if (fd < 0)
     {
       g_free (absname);
-      return (errno == ENOENT || errno == ENOTDIR || errno == ELOOP ?
-              BSE_ERROR_FILE_NOT_FOUND : BSE_ERROR_IO);
+      return (errno == ENOENT || errno == ENOTDIR || errno = SFI_OS_ELOOP
+            ? BSE_ERROR_FILE_NOT_FOUND : BSE_ERROR_IO);
     }
 
   rstore = sfi_rstore_new ();
diff --git a/beast-gtk/bstmsgabsorb.c b/beast-gtk/bstmsgabsorb.c
index 77f81e9..d9d004b 100644
--- a/beast-gtk/bstmsgabsorb.c
+++ b/beast-gtk/bstmsgabsorb.c
@@ -336,8 +336,8 @@ bst_msg_absorb_config_parse (const gchar *file_name)
   if (fd < 0)
     {
       g_free (absname);
-      return (errno == ENOENT || errno == ENOTDIR || errno == ELOOP ?
-              BSE_ERROR_FILE_NOT_FOUND : BSE_ERROR_IO);
+      return (errno == ENOENT || errno == ENOTDIR || errno == SFI_OS_ELOOP
+            ? BSE_ERROR_FILE_NOT_FOUND : BSE_ERROR_IO);
     }
 
   SfiRStore *rstore = sfi_rstore_new ();
diff --git a/beast-gtk/bstskinconfig.c b/beast-gtk/bstskinconfig.c
index e27c5e0..ffc5553 100644
--- a/beast-gtk/bstskinconfig.c
+++ b/beast-gtk/bstskinconfig.c
@@ -285,8 +285,8 @@ bst_skin_parse (const gchar *file_name)
   if (fd < 0)
     {
       g_free (absname);
-      return (errno == ENOENT || errno == ENOTDIR || errno == ELOOP ?
-              BSE_ERROR_FILE_NOT_FOUND : BSE_ERROR_IO);
+      return (errno == ENOENT || errno == ENOTDIR || errno == SFI_OS_ELOOP
+            ? BSE_ERROR_FILE_NOT_FOUND : BSE_ERROR_IO);
     }
 
   rstore = sfi_rstore_new ();



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