mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 13:00:26 +02:00
(scm_mknod): Test #ifdef S_IFLNK before using that (for
symlink). Probably can't create symlinks with mknod anyway though.
This commit is contained in:
parent
9b638d67f2
commit
8d1dd1a137
1 changed files with 3 additions and 0 deletions
|
@ -1428,8 +1428,11 @@ SCM_DEFINE (scm_mknod, "mknod", 4, 0, 0,
|
|||
ctype = S_IFREG;
|
||||
else if (strcmp (p, "directory") == 0)
|
||||
ctype = S_IFDIR;
|
||||
#ifdef S_IFLNK
|
||||
/* systems without symlinks probably don't have S_IFLNK defined */
|
||||
else if (strcmp (p, "symlink") == 0)
|
||||
ctype = S_IFLNK;
|
||||
#endif
|
||||
else if (strcmp (p, "block-special") == 0)
|
||||
ctype = S_IFBLK;
|
||||
else if (strcmp (p, "char-special") == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue