mirror of https://github.com/encounter/SDL.git
Wayland: Removed not needed including and setting of errno.
One internal function was setting errno on error but it was not read afterwards.
This commit is contained in:
parent
ea86c01a86
commit
31cbb34ec9
|
@ -40,7 +40,6 @@
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <errno.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <xkbcommon/xkbcommon.h>
|
#include <xkbcommon/xkbcommon.h>
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -70,7 +69,6 @@ wayland_create_tmp_file(off_t size)
|
||||||
|
|
||||||
xdg_path = SDL_getenv("XDG_RUNTIME_DIR");
|
xdg_path = SDL_getenv("XDG_RUNTIME_DIR");
|
||||||
if (!xdg_path) {
|
if (!xdg_path) {
|
||||||
errno = ENOENT;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue