pkgsrc-ng/inputmethod/mozc-server/patches/patch-build__tools_util.py
2014-08-11 13:27:10 +02:00

15 lines
511 B
Python

$NetBSD: patch-build__tools_util.py,v 1.3 2013/09/07 18:42:14 ryoon Exp $
--- build_tools/util.py.orig 2013-08-28 05:25:59.000000000 +0000
+++ build_tools/util.py
@@ -56,6 +56,9 @@ def IsLinux():
"""Returns true if the platform is Linux."""
return os.name == 'posix' and os.uname()[0] == 'Linux'
+def IsNetBSD():
+ """Returns true if the platform is NetBSD."""
+ return os.name == 'posix' and os.uname()[0] == 'NetBSD'
def GetNumberOfProcessors():
"""Returns the number of CPU cores available.