$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.