summaryrefslogtreecommitdiff
path: root/devel/py-inotify-simple/files/patch-inotify__simple.py
blob: 2b8929facf1a653411915c26af40f4c15c33c405 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- inotify_simple.py.orig	2025-08-25 06:27:48 UTC
+++ inotify_simple.py
@@ -76,7 +76,7 @@ class INotify(FileIO):
                 object is garbage collected or when `~inotify_simple.INotify.close` is
                 called."""
             
-        global _libc; _libc = _libc or CDLL(find_library('c'), use_errno=True)
+        global _libc; _libc = _libc or CDLL(find_library('inotify'), use_errno=True)
         flags = (not inheritable) * os.O_CLOEXEC | bool(nonblocking) * os.O_NONBLOCK
         fd = _libc_call(_libc.inotify_init1, flags)
         super().__init__(fd, mode='rb', closefd=closefd)