inotify-tools: fix compilation with musl 1.2.4
authorNick Hainke <vincent@systemli.org>
Tue, 16 May 2023 21:41:26 +0000 (23:41 +0200)
committerTianling Shen <cnsztl@gmail.com>
Thu, 18 May 2023 11:20:03 +0000 (19:20 +0800)
commitb84d35f57798d61d74dd7d123aa58f1af0db91b6
tree52d71d487dc7760d851fbbf389d26f8aefcea0db
parent5cd812bd6a52d63ab1d644540f8b368976e7d79b
inotify-tools: fix compilation with musl 1.2.4

Fixes errors in the form of:
inotifytools.c: In function 'inotifytools_watch_recursively_with_exclude':
inotifytools.c:1335:30: error: storage size of 'my_stat' isn't known
 1335 |         static struct stat64 my_stat;
      |                              ^~~~~~~
inotifytools.c:1342:36: error: implicit declaration of function 'lstat64'; did you mean 'lstat'? [-Werror=implicit-function-declaration]
 1342 |                         if ( -1 == lstat64( next_file, &my_stat ) ) {
      |                                    ^~~~~~~
      |                                    lstat
inotifytools.c:1335:30: error: unused variable 'my_stat' [-Werror=unused-variable]
 1335 |         static struct stat64 my_stat;
      |                              ^~~~~~~
inotifytools.c: In function 'isdir':
inotifytools.c:1621:30: error: storage size of 'my_stat' isn't known
 1621 |         static struct stat64 my_stat;
      |                              ^~~~~~~
inotifytools.c:1621:30: error: unused variable 'my_stat' [-Werror=unused-variable]
inotifytools.c:1630:1: error: control reaches end of non-void function [-Werror=return-type]
 1630 | }
      | ^
cc1: all warnings being treated as errors

Signed-off-by: Nick Hainke <vincent@systemli.org>
utils/inotify-tools/Makefile