diff options
Diffstat (limited to 'nuttx/fs/fs_write.c')
-rw-r--r-- | nuttx/fs/fs_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/fs_write.c b/nuttx/fs/fs_write.c index ea5b5dc0a..8df9c8233 100644 --- a/nuttx/fs/fs_write.c +++ b/nuttx/fs/fs_write.c @@ -124,7 +124,7 @@ int write(int fd, const void *buf, unsigned int nbytes) { /* Write to a socket descriptor is equivalent to send with flags == 0 */ -#if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0 +#if defined(CONFIG_NET_TCP) && CONFIG_NSOCKET_DESCRIPTORS > 0 if ((unsigned int)fd < (CONFIG_NFILE_DESCRIPTORS+CONFIG_NSOCKET_DESCRIPTORS)) { return send(fd, buf, nbytes, 0); |