1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 05:50:26 +02:00

* filesys.c (scm_stat2scm), posix.c (s_scm_mknod): don't use

S_ISSOCK or S_IFSOCK if not defined.  thanks to Bruce Korb.
This commit is contained in:
Gary Houston 2000-09-30 15:51:49 +00:00
parent db611983cf
commit e655d03424
3 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2000-09-30 Gary Houston <ghouston@arglist.com>
* filesys.c (scm_stat2scm), posix.c (s_scm_mknod): don't use
S_ISSOCK or S_IFSOCK if not defined. thanks to Bruce Korb.
2000-09-29 Neil Jerram <neil@ossau.uklinux.net>
* Makefile.am (guile-procedures.txt): Insert a new rule such that

View file

@ -398,8 +398,10 @@ scm_stat2scm (struct stat *stat_temp)
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;

View file

@ -1226,8 +1226,10 @@ SCM_DEFINE (scm_mknod, "mknod", 4, 0, 0,
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);