$NetBSD: patch-build__tools_util.py,v 1.1 2024/02/10 01:20:46 ryoon Exp $ * NetBSD support --- build_tools/util.py.orig 2016-05-15 08:11:10.000000000 +0000 +++ build_tools/util.py @@ -59,6 +59,11 @@ def IsLinux(): 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.