0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-14 13:48:04 +00:00
packages/utils/mg/patches/902-fix_for_gcc14.patch
Hirokazu MORIKAWA 1e81025af7 mg: fix compilation with GCC 14
Addressing compile errors with gcc-14

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2024-05-28 12:39:06 -07:00

11 lines
248 B
Diff

--- a/main.c
+++ b/main.c
@@ -18,6 +18,7 @@
#include <unistd.h>
#if defined(__linux__) || defined(__CYGWIN__)
#include <pty.h>
+#include <utmp.h>
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
#include <util.h>
#else