Skip to content

Commit

Permalink
Fix poll.h include path
Browse files Browse the repository at this point in the history
The correct include path for poll(2) is poll.h not sys/poll.h.
sys/poll.h may not be available on some libcs or may issue a
warning. In particular this fixes a warning on musl systems.
  • Loading branch information
ii8 committed Feb 15, 2024
1 parent 25785b9 commit 9f84dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/st-util/gdb-remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <win32_socket.h>
#else
#include <unistd.h>
#include <sys/poll.h>
#include <poll.h>
#endif

#include "gdb-remote.h"
Expand Down

0 comments on commit 9f84dcd

Please sign in to comment.