wlan-ap-Telecominfraproject/feeds/mediatek/fitblk/patches/100-header.patch
John Crispin b687eba6e7 mediatek: import v6.6 kernel + drivers from OpenWrt 24.10
Signed-off-by: John Crispin <john@phrozen.org>
2025-11-03 09:35:08 +01:00

25 lines
506 B
Diff

--- a/fitblk.c
+++ b/fitblk.c
@@ -5,7 +5,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
-#include <linux/fitblk.h>
+#include "fitblk.h"
static int fitblk_release(char *device)
{
--- /dev/null
+++ b/fitblk.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
+#ifndef _LINUX_FITBLK_H
+#define _LINUX_FITBLK_H
+
+/*
+ * IOCTL commands --- we will commandeer 0x46 ('F')
+ */
+#define FITBLK_RELEASE 0x4600
+
+#endif /* _LINUX_FITBLK_H */