ports/shells/xonsh/files/patch-xonsh_xoreutils_uptime.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

11 lines
490 B
Python

--- xonsh/xoreutils/uptime.py.orig 2017-02-11 16:24:07 UTC
+++ xonsh/xoreutils/uptime.py
@@ -100,7 +100,7 @@ def _uptime_bsd():
return None
# Determine how much space we need for the response.
sz = ctypes.c_uint(0)
- xp.LIBC.sysctlbyname('kern.boottime', None, ctypes.byref(sz), None, 0)
+ xp.LIBC.sysctlbyname(b'kern.boottime', None, ctypes.byref(sz), None, 0)
if sz.value != struct.calcsize('@LL'):
# Unexpected, let's give up.
return None