Skip to content

Commit 5ff6fef

Browse files
committed
Get definition of struct timeval when including sys/select.h
Some autoconf scripts check for struct timeval to be available
1 parent b799d99 commit 5ff6fef

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

include/sys/select.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ __BEGIN_DECLS
4545
/* Get __sigset_t. */
4646
#include <bits/sigset.h>
4747

48-
/* This declaration puts `struct timeval' in global scope even if
49-
<sys/time.h> has not been included to define it. That way the
50-
`select' prototype below will not conflict with a later definition
51-
of `struct timeval'. */
52-
struct timeval;
48+
/* Get definition of struct timeval. */
49+
#define __need_timeval
50+
#include <bits/time.h>
5351

5452
typedef __fd_mask fd_mask;
5553

0 commit comments

Comments
 (0)