mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
Fix DSU joystick build on Unix platforms
Add missing sys/time.h for struct timeval and sys/select.h for select() function and fd_set types. These headers are required for socket operations on Unix-like platforms including Linux, BSD, and other POSIX systems. This resolves compilation errors: - 'storage size of tv isn't known' (struct timeval) - 'implicit declaration of function select' - 'fd_set' and related macros undeclared The headers are added to the standard Unix/Linux platform section after errno.h and before sys/ioctl.h to maintain proper ordering.
This commit is contained in:
parent
db1245c613
commit
6a44baad9b
1 changed files with 2 additions and 0 deletions
|
|
@ -88,6 +88,8 @@ typedef int socklen_t;
|
|||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/select.h>
|
||||
#ifdef HAVE_SYS_IOCTL_H
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue