[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `S_IFSOCK' undeclared
From: |
Bruce Korb |
Subject: |
Re: `S_IFSOCK' undeclared |
Date: |
Thu, 28 Sep 2000 13:16:53 -0700 |
"Lars J. Aas" wrote:
>
> On Thu, Sep 28, 2000 at 11:22:01AM -0700, Bruce Korb wrote:
> : posix.c:1230: `S_IFSOCK' undeclared (first use in this function)
>
> Should be the same for BeOS and probably a bunch of other systems
> too...
Anyway, trivial fix. But I still wonder about the nawk problem....
$ diff -u guile-1.4/libguile/$f gl/libguile/$f
--- guile-1.4/libguile/posix.c Mon Jun 12 05:43:37 2000
+++ gl/libguile/posix.c Thu Sep 28 11:22:37 2000
@@ -1226,8 +1226,10 @@
ctype = S_IFCHR;
else if (strcmp (p, "fifo") == 0)
ctype = S_IFIFO;
+#ifdef S_IFSOCK
else if (strcmp (p, "socket") == 0)
ctype = S_IFSOCK;
+#endif
else
SCM_OUT_OF_RANGE (2,type);
--- guile-1.4/libguile/filesys.c Mon Jun 12 05:43:35 2000
+++ gl/libguile/filesys.c Thu Sep 28 11:24:07 2000
@@ -398,8 +398,10 @@
ve[13] = scm_sym_char_special;
else if (S_ISFIFO (mode))
ve[13] = scm_sym_fifo;
+#ifdef S_ISSOCK
else if (S_ISSOCK (mode))
ve[13] = scm_sym_sock;
+#endif
else
ve[13] = scm_sym_unknown;