summaryrefslogtreecommitdiff
path: root/sysutils/inotify-tools/files
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/inotify-tools/files')
-rw-r--r--sysutils/inotify-tools/files/patch-src_Makefile.am13
-rw-r--r--sysutils/inotify-tools/files/patch-src_inotifywatch.c9
2 files changed, 8 insertions, 14 deletions
diff --git a/sysutils/inotify-tools/files/patch-src_Makefile.am b/sysutils/inotify-tools/files/patch-src_Makefile.am
index 50da9fa71b6b..aa6effcfc478 100644
--- a/sysutils/inotify-tools/files/patch-src_Makefile.am
+++ b/sysutils/inotify-tools/files/patch-src_Makefile.am
@@ -1,16 +1,11 @@
---- src/Makefile.am.orig 2014-11-09 20:57:04 UTC
+--- src/Makefile.am.orig 2020-01-30 00:04:48 UTC
+++ src/Makefile.am
-@@ -2,10 +2,11 @@ bin_PROGRAMS = inotifywait inotifywatch
+@@ -2,7 +2,7 @@ bin_PROGRAMS = inotifywait inotifywatch
inotifywait_SOURCES = inotifywait.c common.c common.h
inotifywatch_SOURCES = inotifywatch.c common.c common.h
--AM_CFLAGS = -Wall -Werror -Wpointer-arith -std=c99 -I../libinotifytools/src -L../libinotifytools/src
-+AM_CFLAGS = -Wall -Werror -Wpointer-arith -std=c99
+-AM_CFLAGS = -Wall -Wextra -Wpointer-arith -Werror -std=c99 -I../libinotifytools/src
++AM_CFLAGS = -Wall -Wextra -Wpointer-arith -Werror -std=c99
AM_CPPFLAGS = -I$(top_srcdir)/libinotifytools/src
LDADD = ../libinotifytools/src/libinotifytools.la
-+AM_LDFLAGS = -L$(top_srcdir)/libinotifytools/src
- if STATIC_BINARY_ENABLE
--AM_LDFLAGS = -static-libtool-libs
-+AM_LDFLAGS += -static-libtool-libs
- endif
diff --git a/sysutils/inotify-tools/files/patch-src_inotifywatch.c b/sysutils/inotify-tools/files/patch-src_inotifywatch.c
index 4e9004713a42..dfc768d6c927 100644
--- a/sysutils/inotify-tools/files/patch-src_inotifywatch.c
+++ b/sysutils/inotify-tools/files/patch-src_inotifywatch.c
@@ -1,4 +1,4 @@
---- src/inotifywatch.c.orig 2018-01-06 11:10:51 UTC
+--- src/inotifywatch.c.orig 2020-01-30 00:04:48 UTC
+++ src/inotifywatch.c
@@ -12,6 +12,9 @@
#include <errno.h>
@@ -21,7 +21,7 @@
signal(SIGINT, handle_impatient_user);
// Parse commandline options, aborting if something goes wrong
-@@ -110,11 +117,27 @@ int main(int argc, char **argv) {
+@@ -110,10 +117,26 @@ int main(int argc, char **argv) {
return EXIT_FAILURE;
}
@@ -41,11 +41,10 @@
warn_inotify_init_error();
return EXIT_FAILURE;
}
-
++
+#ifdef __FreeBSD__
+ pthread_sigmask(SIG_SETMASK, &oset, NULL);
+#endif // __FreeBSD__
-+
+
// Attempt to watch file
// If events is still 0, make it all events.
- if (!events)