Add openbsd to the platform list so that extensions can be installed

This commit is contained in:
robert 2009-01-31 10:59:14 +00:00
parent 2c6f0ab97b
commit 3bceb381d7

View File

@ -0,0 +1,23 @@
$OpenBSD: patch-desktop_source_deployment_misc_dp_platform_cxx,v 1.1 2009/01/31 10:59:14 robert Exp $
--- desktop/source/deployment/misc/dp_platform.cxx.orig.port Sat Jan 31 12:44:08 2009
+++ desktop/source/deployment/misc/dp_platform.cxx Sat Jan 31 12:44:59 2009
@@ -64,6 +64,8 @@
#define PLATFORM_MACOSX_X86 "macosx_x86"
#define PLATFORM_MACOSX_PPC "macosx_powerpc"
#define PLATFORM_OS2_X86 "os/2_x86"
+#define PLATFORM_OPENBSD_X86 "openbsd_x86"
+#define PLATFORM_OPENBSD_X86_64 "openbsd_x86_64"
@@ -164,6 +166,10 @@ namespace
ret = checkOSandCPU(OUSTR("MacOSX"), OUSTR("PowerPC"));
else if (token.equals(OUSTR(PLATFORM_OS2_X86)))
ret = checkOSandCPU(OUSTR("OS/2"), OUSTR("x86"));
+ else if (token.equals(OUSTR(PLATFORM_OPENBSD_X86)))
+ ret = checkOSandCPU(OUSTR("OpenBSD"), OUSTR("x86"));
+ else if (token.equals(OUSTR(PLATFORM_OPENBSD_X86_64)))
+ ret = checkOSandCPU(OUSTR("OpenBSD"), OUSTR("X86_64"));
else
{
OSL_ENSURE(0, "Extension Manager: The extension supports an unknown platform. "