inotify-tools: Update to 3.22.1.0

This commit is contained in:
Tee KOBAYASHI 2022-02-28 13:37:44 +09:00 committed by buttaface
parent 01c7f332e4
commit 251b6dc2fc
3 changed files with 25 additions and 2 deletions

View File

@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/rvoicilas/inotify-tools/wiki
TERMUX_PKG_DESCRIPTION="Programs providing a simple interface to inotify"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.20.11.0
TERMUX_PKG_VERSION=3.22.1.0
TERMUX_PKG_SRCURL=https://github.com/rvoicilas/inotify-tools/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=58a3cde89e4a5111a87ac16b56b06a8f885460fca0aea51b69c856ce30a37a14
TERMUX_PKG_SHA256=da81010756866966e6dfb1521c2be2f0946e7626fa29122e1672dc654fc89ff3
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BREAKS="inotify-tools-dev"
TERMUX_PKG_REPLACES="inotify-tools-dev"

View File

@ -0,0 +1,12 @@
--- a/libinotifytools/src/inotifytools/fanotify.h.in
+++ b/libinotifytools/src/inotifytools/fanotify.h.in
@@ -14,7 +14,9 @@
* before including sys/fanotify.h.
*/
#include "fanotify-dfid-name.h"
+#ifndef __ANDROID__
#include <sys/fanotify.h>
+#endif
#endif // SYS_FANOTIFY_H_EXISTS_AND_WORKS

View File

@ -0,0 +1,11 @@
--- a/libinotifytools/src/inotifytools.c
+++ b/libinotifytools/src/inotifytools.c
@@ -43,7 +43,7 @@
#define FAN_EVENT_INFO_TYPE_DFID_NAME 2
#define FAN_EVENT_INFO_TYPE_DFID 3
-#else
+#elif !defined __ANDROID__
// Linux only
#define LINUX_FANOTIFY