Sergey Bugaev
b604640950
LibC: Fix struct declaration visibility
...
Isn't
"expected struct timeval *, but argument is of type struct timeval *"
a fun error message? C considers a 'struct foo' mentioned inside a
function argument to be a distinct type from 'struct foo' declared on
the global level, but only if the in-function definition comes first. So
we need to ensure that struct timeval is declared (either fully, or
forward-declared) before we declare select() and pselect(). This was
taken care of by including <sys/time.h>, but
https://github.com/SerenityOS/serenity/pull/20044 made it so that
<sys/time.h> itself includes <sys/select.h>. So if the user's program
includes <sys/time.h> (before possibly including <sys/select.h>), then
<sys/select.h>'s include of <sys/time.h> will turn into a no-op (since
<sys/time.h> is already being included), yet there will not have been a
struct timeval definition yet, and we'd get the fun error message.
Fix this by including <Kernel/API/POSIX/sys/time.h> instead of
<sys/time.h>
2023-07-29 16:51:58 -06:00
..
2022-12-28 11:53:41 +01:00
2023-07-19 00:19:35 -06:00
2023-07-19 00:19:35 -06:00
2023-07-19 00:19:35 -06:00
2023-07-29 16:51:58 -06:00
2023-03-05 16:55:08 +01:00
2022-12-03 23:52:23 +00:00
2023-06-27 12:40:38 +02:00
2023-07-29 16:51:58 -06:00
2023-01-02 20:27:20 -05:00
2023-06-01 09:04:20 +02:00
2023-01-07 10:01:37 -07:00
2023-01-02 20:27:20 -05:00
2022-08-23 19:07:12 +01:00
2023-05-05 02:19:05 +02:00
2023-05-05 02:19:05 +02:00
2023-06-27 12:40:38 +02:00
2021-04-22 11:22:27 +02:00
2022-04-21 11:49:48 +02:00
2023-04-10 10:21:28 +02:00
2023-07-19 00:19:35 -06:00
2023-03-01 19:36:53 -07:00
2023-04-14 19:15:19 +02:00
2021-10-04 11:10:09 +01:00
2022-08-23 19:07:12 +01:00
2023-03-12 22:09:09 +01:00
2023-07-19 00:19:35 -06:00
2023-01-02 20:27:20 -05:00
2022-07-08 22:27:38 +00:00
2023-05-28 05:05:09 -06:00
2022-11-25 23:13:16 +01:00
2023-01-07 10:01:37 -07:00
2022-12-28 11:53:41 +01:00
2021-07-22 04:18:39 +04:30
2022-04-01 21:24:45 +01:00
2023-07-19 00:19:35 -06:00
2022-04-21 11:49:48 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2023-07-08 15:53:02 -04:00
2021-04-22 11:22:27 +02:00
2023-01-21 10:43:59 -07:00
2023-04-14 19:15:19 +02:00
2022-09-16 16:09:19 +00:00
2021-04-22 11:22:27 +02:00
2022-01-13 18:46:22 +01:00
2023-04-14 12:29:03 +01:00
2023-01-04 20:13:54 +01:00
2023-07-19 00:19:35 -06:00
2023-06-07 13:44:44 +02:00
2022-07-22 10:07:15 -07:00
2022-08-23 19:07:12 +01:00
2021-09-23 18:51:21 +02:00
2022-07-22 10:07:15 -07:00
2022-07-21 16:39:22 +02:00
2022-07-21 16:39:22 +02:00
2022-07-19 20:58:51 -07:00
2023-04-23 14:30:59 +02:00
2023-07-19 00:19:35 -06:00
2023-01-02 20:27:20 -05:00
2021-05-06 13:52:46 +01:00
2023-04-09 22:00:54 +02:00
2022-04-01 21:24:45 +01:00
2022-09-05 10:12:02 +01:00
2023-06-27 12:40:38 +02:00
2023-01-02 20:27:20 -05:00
2023-07-19 00:19:35 -06:00
2022-04-01 21:24:45 +01:00
2023-07-06 10:15:37 +01:00
2023-07-19 00:19:35 -06:00
2022-12-11 19:55:37 -07:00
2022-12-28 11:53:41 +01:00
2023-01-02 20:27:20 -05:00
2023-06-07 00:24:09 +02:00
2023-07-19 00:19:35 -06:00
2023-01-02 20:27:20 -05:00
2023-07-19 00:19:35 -06:00
2022-11-01 14:49:09 +00:00
2022-11-29 11:04:21 +01:00
2023-04-10 10:21:28 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2022-08-23 19:07:12 +01:00
2023-07-22 12:19:53 -04:00
2023-07-19 00:19:35 -06:00
2023-07-08 10:32:56 +01:00
2023-07-19 00:19:35 -06:00
2023-07-07 23:46:54 +02:00
2023-07-19 00:19:35 -06:00
2022-10-14 13:37:29 +02:00
2022-12-03 23:52:23 +00:00
2023-01-27 20:38:49 +00:00
2022-04-01 21:24:45 +01:00
2023-07-06 10:15:37 +01:00
2022-07-22 10:07:15 -07:00
2023-07-04 16:30:13 +02:00
2023-07-19 00:19:35 -06:00
2021-04-22 11:22:27 +02:00
2022-02-28 20:09:37 +01:00
2023-07-02 01:04:51 +02:00
2023-07-19 00:19:35 -06:00
2022-04-01 21:24:45 +01:00
2021-04-22 11:22:27 +02:00
2022-06-30 11:57:49 +02:00
2023-07-19 00:19:35 -06:00
2023-01-02 20:27:20 -05:00
2023-07-19 00:19:35 -06:00
2022-03-20 08:40:36 -04:00