termux-packages/packages/vtm/netxs-os-system.hpp.patch

29 lines
998 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

diff -uNr vtm-0.5.15/src/netxs/os/system.hpp vtm-0.5.15.mod/src/netxs/os/system.hpp
--- vtm-0.5.15/src/netxs/os/system.hpp 2021-08-05 00:50:44.000000000 +0300
+++ vtm-0.5.15.mod/src/netxs/os/system.hpp 2021-10-04 19:44:51.626533289 +0300
@@ -81,7 +81,7 @@
#if defined(__linux__)
#include <sys/vt.h> // ::console_ioctl()
- #include <sys/kd.h> // ::console_ioctl()
+ #include <linux/kd.h> // ::console_ioctl()
#include <linux/keyboard.h> // ::keyb_ioctl()
#endif
#endif
@@ -1464,7 +1464,7 @@
#elif defined(__linux__)
ucred cred = {};
- unsigned size = sizeof(cred);
+ socklen_t size = sizeof(cred);
if (!ok(::getsockopt(handle.h, SOL_SOCKET, SO_PEERCRED, &cred, &size), "getsockopt error"))
return faux;
@@ -2634,4 +2634,4 @@
};
}
-#endif // NETXS_SYSTEM_HPP
\ В конце файла нет новой строки
+#endif // NETXS_SYSTEM_HPP