summaryrefslogtreecommitdiff
path: root/nuttx/include/sys/select.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/include/sys/select.h')
-rw-r--r--nuttx/include/sys/select.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/include/sys/select.h b/nuttx/include/sys/select.h
index 1ff074b6c..6ce8ff861 100644
--- a/nuttx/include/sys/select.h
+++ b/nuttx/include/sys/select.h
@@ -104,13 +104,15 @@ typedef uint32_t fd_set[__SELECT_NUINT32];
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
-extern "C" {
+extern "C"
+{
#else
#define EXTERN extern
#endif
-EXTERN int select(int nfds, FAR fd_set *readfds, FAR fd_set *writefds,
- FAR fd_set *exceptfds, FAR struct timeval *timeout);
+struct timeval;
+int select(int nfds, FAR fd_set *readfds, FAR fd_set *writefds,
+ FAR fd_set *exceptfds, FAR struct timeval *timeout);
#undef EXTERN
#if defined(__cplusplus)