[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
S_IFSOCK
From: |
Golubev I. N. |
Subject: |
S_IFSOCK |
Date: |
Mon, 14 May 2001 14:21:55 (GMT) |
Not all systems have `S_IFSOCK' definition (from <sys/stat.h>). On
those guile-1.4 will fail to compile. This can be worked around
without changing sources by adding `-DS_IFSOCK=S_IFIFO' to CPPFLAGS
while configuring. To avoid such tricks it may be patched like this.
After all, if it wants to be an interpreter for newer automake, it
should be as portable as old one (perl).
--- filesys.c Mon Jun 12 16:43:35 2000
+++ filesys.c Mon May 14 18:17:21 2001
@@ -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 /* def S_ISSOCK */
else
ve[13] = scm_sym_unknown;
--- posix.c Mon Jun 12 16:43:37 2000
+++ posix.c Mon May 14 18:19:16 2001
@@ -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 /* def S_IFSOCK */
else
SCM_OUT_OF_RANGE (2,type);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- S_IFSOCK,
Golubev I. N. <=