summaryrefslogtreecommitdiff
path: root/nuttx/include/aio.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-11 08:15:23 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-11 08:15:23 -0600
commitea06ccf99b5d9fb74f1c57f9a6cbc42758f55442 (patch)
treef710f98791aeeb1a227a85b6d85c60a7b4edcb44 /nuttx/include/aio.h
parent4be643e96853f9c88983cbfcf63bccb24f43b7fe (diff)
downloadpx4-nuttx-ea06ccf99b5d9fb74f1c57f9a6cbc42758f55442.tar.gz
px4-nuttx-ea06ccf99b5d9fb74f1c57f9a6cbc42758f55442.tar.bz2
px4-nuttx-ea06ccf99b5d9fb74f1c57f9a6cbc42758f55442.zip
AIO now also supports socket transfers
Diffstat (limited to 'nuttx/include/aio.h')
-rw-r--r--nuttx/include/aio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/include/aio.h b/nuttx/include/aio.h
index b323e01b3..183caec06 100644
--- a/nuttx/include/aio.h
+++ b/nuttx/include/aio.h
@@ -125,7 +125,7 @@ struct aiocb
FAR volatile void *aio_buf; /* Location of buffer */
off_t aio_offset; /* File offset */
size_t aio_nbytes; /* Length of transfer */
-#if CONFIG_NFILE_DESCRIPTORS > 127
+#if (CONFIG_NFILE_DESCRIPTORS + CONFIG_NSOCKET_DESCRIPTORS) > 127
int16_t aio_fildes; /* File descriptor (should be int) */
#else
int8_t aio_fildes; /* File descriptor (should be int) */