From a4d157bb2d6fc422ea59f074e2b69a8f0929f9e0 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 9 Oct 2014 08:34:49 -0600 Subject: [PATCH] Trivial AIO-related changes --- include/aio.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/aio.h b/include/aio.h index aff1e00939..b323e01b37 100644 --- a/include/aio.h +++ b/include/aio.h @@ -125,7 +125,11 @@ 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 int16_t aio_fildes; /* File descriptor (should be int) */ +#else + int8_t aio_fildes; /* File descriptor (should be int) */ +#endif int8_t aio_reqprio; /* Request priority offset (not used, should be int) */ uint8_t aio_lio_opcode; /* Operation to be performed (should be int) */