summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/lib/libc/syscalls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/c/src/lib/libc/syscalls.c b/c/src/lib/libc/syscalls.c
index 477581c492..530e032a40 100644
--- a/c/src/lib/libc/syscalls.c
+++ b/c/src/lib/libc/syscalls.c
@@ -58,8 +58,10 @@ int __rtems_fstat(int _fd, struct stat* _sbuf)
break;
case RTEMS_FILE_DESCRIPTOR_TYPE_SOCKET:
+#if !defined(__GO32__)
_sbuf->st_mode = S_IFSOCK;
break;
+#endif
default:
puts( "__rtems_fstat -- unknown file descriptor type" );