mirror of
https://github.com/minetest/minetest.git
synced 2024-12-03 13:03:45 +01:00
Include unistd.h for getpid() when _IRR_COMPILE_WITH_X11_
This commit is contained in:
parent
c2057eee4b
commit
c011fa0188
@ -45,9 +45,12 @@
|
|||||||
#include <X11/Xcursor/Xcursor.h>
|
#include <X11/Xcursor/Xcursor.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_IRR_COMPILE_WITH_X11_) || defined(_IRR_COMPILE_WITH_JOYSTICK_EVENTS_)
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
|
#if defined _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
#include <sys/joystick.h>
|
#include <sys/joystick.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user