freebsd-ports/shells/xonsh/files/patch-xonsh_platform.py
Matthew Seaman a99b06d58b xonsh is a Python-ish, BASHwards-looking shell language and command prompt.
The language is a superset of Python 3.4+ with additional shell primitives.
xonsh (pronounced conch) is meant for the daily use of experts and novices
alike.

WWW: http://xon.sh

PR:		220596
Submitted by:	roberfern@gmail.com
2017-09-22 14:57:41 +00:00

12 lines
368 B
Python

--- xonsh/platform.py.orig 2017-03-12 02:36:40 UTC
+++ xonsh/platform.py
@@ -491,7 +491,7 @@ def LIBC():
libc = ctypes.CDLL('cygwin1.dll')
elif ON_BSD:
try:
- libc = ctypes.CDLL('libc.so')
+ libc = ctypes.CDLL(ctypes.util.find_library("c"))
except AttributeError:
libc = None
except OSError: