blob: 31aaeaa6e1bf7bb80486ab1c934b6baac885a562 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-lib_readline_colors.c,v 1.1 2014/07/17 12:49:15 ryoon Exp $
* SCO OpenServer 5.0.7/3.2 has no S_ISSOCK.
--- lib/readline/colors.c.orig 2013-03-20 15:19:08.000000000 +0000
+++ lib/readline/colors.c
@@ -187,8 +187,10 @@ _rl_print_color_indicator (char *f)
? C_ORPHAN : C_LINK);
else if (S_ISFIFO (mode))
colored_filetype = C_FIFO;
+#if defined(S_ISSOCK)
else if (S_ISSOCK (mode))
colored_filetype = C_SOCK;
+#endif
else if (S_ISBLK (mode))
colored_filetype = C_BLK;
else if (S_ISCHR (mode))
|