include/sys/time.h: include sys/select.h to compatible with earlier standards

According to earlier standards, usage of select(), FD_CLR, FD_ISSET, FD_SET and FD_ZERO
just need include headers: sys/time.h, sys/types.h and unistd.h. So include sys/select.h
in time.h to compatible with it. Or mbedtls library would build break in calling select()
and FD_* related functions.

https://pubs.opengroup.org/onlinepubs/007908799/xsh/select.html
This commit is contained in:
liuhaitao 2019-10-17 11:26:44 -06:00 committed by Gregory Nutt
parent d45f559d47
commit 7b89845035

View File

@ -1,7 +1,7 @@
/****************************************************************************
* include/sys/time.h
*
* Copyright (C) 2009, 2015-2016 Gregory Nutt. All rights reserved.
* Copyright (C) 2009, 2015-2016, 2019 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -43,6 +43,7 @@
#include <nuttx/config.h>
#include <time.h>
#include <sys/select.h>
/****************************************************************************
* Pre-processor Definitions