2022-04-16 12:36:53 +02:00
|
|
|
--- a/src/netxs/os/system.hpp 2022-02-14 16:50:27.000000000 +0000
|
|
|
|
+++ b/src/netxs/os/system.hpp 2022-04-17 10:03:16.743450407 +0000
|
2021-10-04 14:41:53 +02:00
|
|
|
@@ -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
|
2022-04-16 12:36:53 +02:00
|
|
|
|
|
|
|
@@ -1507,7 +1507,7 @@
|
2021-10-04 18:47:48 +02:00
|
|
|
#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;
|
2022-04-16 12:36:53 +02:00
|
|
|
@@ -2687,4 +2687,4 @@
|
2021-10-04 14:41:53 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
-#endif // NETXS_SYSTEM_HPP
|
2022-04-16 12:36:53 +02:00
|
|
|
\ No newline at end of file
|
2021-10-04 14:41:53 +02:00
|
|
|
+#endif // NETXS_SYSTEM_HPP
|