opnsense-ports/devel/py-watchdog/files/patch-src_watchdog_observers_inotify__c.py
Franco Fichtner 249465794e */*: sync with upstream
Taken from: FreeBSD
2022-11-21 10:39:45 +01:00

11 lines
409 B
Python

--- src/watchdog/observers/inotify_c.py.orig 2022-06-10 10:11:14 UTC
+++ src/watchdog/observers/inotify_c.py
@@ -25,7 +25,7 @@ from functools import reduce
from ctypes import c_int, c_char_p, c_uint32
from watchdog.utils import UnsupportedLibc
-libc = ctypes.CDLL(None)
+libc = ctypes.CDLL('libinotify.so')
if not hasattr(libc, 'inotify_init') or \
not hasattr(libc, 'inotify_add_watch') or \