Skip to content

Commit

Permalink
kernel/syscall: remove the duplicate poll.h
Browse files Browse the repository at this point in the history
this `poll.h` file is located at `testcases/kernel/syscalls/utils`
directory. Since we need to export the `testcases/kernel/syscalls/utils`
path as the reference directory for header files, so when we use
`#include <poll.h>` anywhere in the entire system, it will give priority
to referencing the `testcases/kernel/syscalls/utils/poll.h` instead of
the `<poll.h>` in the current system. As a result, this will lead to
some compilation errors.

In addition, some of the contents defined in `testcases/kernel/syscalls/utils/poll.h`
also conflicts with those defined in the system's `<poll.h>`.
For example, the definition of `struct pollfd {}` is in conflict.
Therefore, we can't solve the error of duplicate definition of `struct pollfd {}`
just by using `#include_next <poll.h>` directly in `testcases/kernel/syscalls/utils/poll.h`.

Signed-off-by: guoshichao <[email protected]>
  • Loading branch information
extinguish authored and xiaoxiang781216 committed Dec 26, 2024
1 parent 385708f commit 92c7d59
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions testcases/kernel/syscalls/utils/poll.h

This file was deleted.

0 comments on commit 92c7d59

Please sign in to comment.