openwrt-packages/utils/mt-st/patches/010-sysmacros.patch

21 lines
392 B
Diff

--- a/mt.c
+++ b/mt.c
@@ -20,6 +20,7 @@
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
+#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <sys/utsname.h>
--- a/stinit.c
+++ b/stinit.c
@@ -16,6 +16,7 @@
#include <errno.h>
#include <fcntl.h>
#include <dirent.h>
+#include <limits.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/sysmacros.h>