landry 2c667c343b Import inotify-tools 3.14pl0 (git HEAD)
This is a package of some commandline utilities relating to inotify.
The general purpose of this package is to allow inotify's features to
be used from within shell scripts.

ok ajacoutot@
2016-01-23 16:04:48 +00:00

16 lines
517 B
Plaintext

$OpenBSD: patch-src_common_c,v 1.1.1.1 2016/01/23 16:04:48 landry Exp $
--- src/common.c.orig Sun Nov 9 21:57:04 2014
+++ src/common.c Sat Jan 23 12:49:21 2016
@@ -44,9 +44,9 @@ void print_event_descriptions() {
}
int isdir( char const * path ) {
- static struct stat64 my_stat;
+ static struct stat my_stat;
- if ( -1 == lstat64( path, &my_stat ) ) {
+ if ( -1 == lstat( path, &my_stat ) ) {
if (errno == ENOENT) return 0;
fprintf(stderr, "Stat failed on %s: %s\n", path, strerror(errno));
return 0;