<sys/time.h> should include [most of] <sys/select.h>.

Found by trying to build c-ares with bionic.

Change-Id: I38684abcb806ef1e8806c68b4a6dd9200f48849e
This commit is contained in:
Elliott Hughes 2015-07-17 19:10:24 -07:00
parent 4f2e1d3b1e
commit a7a87dda4a

View file

@ -25,6 +25,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#ifndef _SYS_TIME_H_
#define _SYS_TIME_H_
@ -32,6 +33,9 @@
#include <sys/types.h>
#include <linux/time.h>
/* POSIX says <sys/time.h> gets you most of <sys/select.h> and may get you all of it. */
#include <sys/select.h>
__BEGIN_DECLS
extern int gettimeofday(struct timeval *, struct timezone *);