$OpenBSD: patch-Ghidra_Features_FunctionID_build_gradle,v 1.2 2020/07/19 01:29:23 lteo Exp $

From https://github.com/NationalSecurityAgency/ghidra/pull/490

Index: Ghidra/Features/FunctionID/build.gradle
--- Ghidra/Features/FunctionID/build.gradle.orig
+++ Ghidra/Features/FunctionID/build.gradle
@@ -97,10 +97,10 @@ task buildFidDocumentationPdf(type: Exec) {
 
 	// Check the OS before executing command.
 	doFirst {
-		if ( !(org.gradle.internal.os.OperatingSystem.current().isLinux() 
-			|| org.gradle.internal.os.OperatingSystem.current().isMacOsX())) {
+		String osName = System.getProperty("os.name")
+		if ( !(isLinux(osName) || isMac(osName) || isOpenBSD(osName))) {
 			throw new TaskExecutionException( it,
-				new Exception( "The '$it.name' task only works on Linux or Mac Os X" ))
+				new Exception( "The '$it.name' task only works on Linux, Mac OS X, or OpenBSD" ))
 		}
 	}
 
