Skip to content
Permalink
Browse files

utils/f2fs-tools: fix build k-2.6

  • Loading branch information
The-BB committed Mar 19, 2020
1 parent 74041c0 commit fc6187916ee74bec79263402cb7220fc155c12fb
Showing with 21 additions and 2 deletions.
  1. +1 −2 package/utils/f2fs-tools/Makefile
  2. +20 −0 package/utils/f2fs-tools/patches-2.6/500-k26.patch
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=f2fs-tools
PKG_VERSION:=1.13.0
PKG_RELEASE:=1
PKG_RELEASE:=1a

PKG_LICENSE:=GPL-2.0

@@ -78,7 +78,6 @@ endef

define Package/f2fsck/install
$(INSTALL_DIR) $(1)/opt/sbin

$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/sbin/fsck.f2fs $(1)/opt/sbin
ln -s fsck.f2fs $(1)/opt/sbin/defrag.f2fs
ln -s fsck.f2fs $(1)/opt/sbin/dump.f2fs
@@ -0,0 +1,20 @@
--- a/tools/f2fscrypt.c
+++ b/tools/f2fscrypt.c
@@ -40,6 +40,7 @@
#include <signal.h>
#include <linux/fs.h>
#include <uuid/uuid.h>
+#include <linux/types.h>

#if !defined(HAVE_ADD_KEY) || !defined(HAVE_KEYCTL)
#include <sys/syscall.h>
--- a/tools/sha512.c
+++ b/tools/sha512.c
@@ -30,6 +30,7 @@
#include <unistd.h>
#include <signal.h>
#include <linux/fs.h>
+#include <linux/types.h>

#if HAVE_SYS_TYPES_H
#include <sys/types.h>

0 comments on commit fc61879

Please sign in to comment.
You can’t perform that action at this time.