ports/devel/py-pyinotify/patches/patch-setup_py

25 lines
740 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
https://github.com/seb-m/pyinotify/pull/153
Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -25,7 +25,8 @@ if sys.version_info < (2, 4):
sys.exit(1)
# check linux platform
-if not platform.startswith('linux') and not platform.startswith('freebsd'):
+if not platform.startswith('linux') and not platform.startswith('freebsd') and \
+ not platform.startswith('openbsd'):
sys.stderr.write("inotify is not available on %s\n" % platform)
sys.exit(1)
@@ -71,7 +72,7 @@ def should_compile_ext_mod():
return True
try_libc_name = 'c'
- if platform.startswith('freebsd'):
+ if platform.startswith('freebsd') or platform.startswith('openbsd'):
try_libc_name = 'inotify'
libc_name = None