diff --git a/ChangeLog b/ChangeLog index 5cac1e9f5..13662d881 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Aug 15 02:31:55 2004 Matthias Clasen + + * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make + the use of S_ISFIFO and S_ISSOCK conditional. (#150146, + Gustavo Carneiro) + 2004-08-14 Tor Lillqvist * gtk/gtkfilechooserdefault.c (shortcuts_append_home, diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5cac1e9f5..13662d881 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Sun Aug 15 02:31:55 2004 Matthias Clasen + + * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make + the use of S_ISFIFO and S_ISSOCK conditional. (#150146, + Gustavo Carneiro) + 2004-08-14 Tor Lillqvist * gtk/gtkfilechooserdefault.c (shortcuts_append_home, diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 5cac1e9f5..13662d881 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Sun Aug 15 02:31:55 2004 Matthias Clasen + + * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make + the use of S_ISFIFO and S_ISSOCK conditional. (#150146, + Gustavo Carneiro) + 2004-08-14 Tor Lillqvist * gtk/gtkfilechooserdefault.c (shortcuts_append_home, diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5cac1e9f5..13662d881 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Sun Aug 15 02:31:55 2004 Matthias Clasen + + * gtk/gtkfilesystemunix.c (get_icon_type_from_stat): Make + the use of S_ISFIFO and S_ISSOCK conditional. (#150146, + Gustavo Carneiro) + 2004-08-14 Tor Lillqvist * gtk/gtkfilechooserdefault.c (shortcuts_append_home, diff --git a/gtk/gtkfilesystemunix.c b/gtk/gtkfilesystemunix.c index 701736317..4bb5c212c 100644 --- a/gtk/gtkfilesystemunix.c +++ b/gtk/gtkfilesystemunix.c @@ -590,10 +590,14 @@ get_icon_type_from_stat (struct stat *statp) return ICON_CHARACTER_DEVICE; else if (S_ISDIR (statp->st_mode)) return ICON_DIRECTORY; +#ifdef S_ISFIFO else if (S_ISFIFO (statp->st_mode)) return ICON_FIFO; +#endif +#ifdef S_ISSOCK else if (S_ISSOCK (statp->st_mode)) return ICON_SOCKET; +#endif else return ICON_REGULAR; }