mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
fix compile error in mingw fstat socket detection
* libguile/filesys.c (fstat_Win32) [__MINGW32__]: Apparently there is no _S_IFSOCK on mingw32. Thanks to Volker Grabsch for the report.
This commit is contained in:
parent
a04e57498c
commit
19761af161
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ static int fstat_Win32 (int fdes, struct stat *buf)
|
||||||
/* Is this a socket ? */
|
/* Is this a socket ? */
|
||||||
if (getsockopt (fdes, SOL_SOCKET, SO_ERROR, (void *) &error, &optlen) >= 0)
|
if (getsockopt (fdes, SOL_SOCKET, SO_ERROR, (void *) &error, &optlen) >= 0)
|
||||||
{
|
{
|
||||||
buf->st_mode = _S_IFSOCK | _S_IREAD | _S_IWRITE | _S_IEXEC;
|
buf->st_mode = _S_IREAD | _S_IWRITE | _S_IEXEC;
|
||||||
buf->st_nlink = 1;
|
buf->st_nlink = 1;
|
||||||
buf->st_atime = buf->st_ctime = buf->st_mtime = time (NULL);
|
buf->st_atime = buf->st_ctime = buf->st_mtime = time (NULL);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue