tools/winebuild: add FreeBSD support (1/2) (RESEND) (fwd)

Gerald Pfeifer gerald at pfeifer.com
Wed Sep 30 13:20:44 CDT 2009


[ I'd like to ping this after three weeks.  This fixes a real bug
  that has reported by a user.  Any chance to get it in, or do you
  need to see this changed somehow?  ]

What I missed in my original submission is a reference to what actually
triggered this:  http://www.freebsd.org/cgi/query-pr.cgi?pr=137999  is
the bug report by a FreeBSD user.

This is patch 1 of 2 to add FreeBSD support to tools/winebuild.  It
adds FreeBSD as a known platform.  The second half, which is awaiting
feedback from a tester, will then leverage this.

Gerald


ChangeLog:
Add support for PLATFORM_FREEBSD.

diff --git a/tools/winebuild/build.h b/tools/winebuild/build.h
index 7ca10c1..96d7493 100644
--- a/tools/winebuild/build.h
+++ b/tools/winebuild/build.h
@@ -124,7 +124,11 @@ enum target_cpu
 
 enum target_platform
 {
-    PLATFORM_UNSPECIFIED, PLATFORM_APPLE, PLATFORM_SOLARIS, PLATFORM_WINDOWS
+    PLATFORM_UNSPECIFIED,
+    PLATFORM_APPLE,
+    PLATFORM_FREEBSD,
+    PLATFORM_SOLARIS,
+    PLATFORM_WINDOWS
 };
 
 extern char *target_alias;
diff --git a/tools/winebuild/main.c b/tools/winebuild/main.c
index bebb37b..3c80ea3 100644
--- a/tools/winebuild/main.c
+++ b/tools/winebuild/main.c
@@ -64,6 +64,8 @@ enum target_cpu target_cpu = CPU_POWERPC;
 
 #ifdef __APPLE__
 enum target_platform target_platform = PLATFORM_APPLE;
+#elif defined(__FreeBSD__)
+enum target_platform target_platform = PLATFORM_FREEBSD;
 #elif defined(__sun)
 enum target_platform target_platform = PLATFORM_SOLARIS;
 #elif defined(_WINDOWS)



More information about the wine-patches mailing list