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

Gerald Pfeifer gerald at pfeifer.com
Sun Oct 4 19:24:57 CDT 2009


On Thu, 1 Oct 2009, Alexandre Julliard wrote:
> Looks ok but the patch doesn't apply. When resubmitting a patch you have 
> to rebase on current git first.

This is strange since I've had this in my local git and did not get
any conflict.  Ah, now I see -- there was some fuzz which git handled 
transparently on my side.  Sorry for the inconvenience.  I was not
aware that git was able to handle this transparently.

Please find below the adjusted patch.

Thanks,
Gerald


Add support for PLATFORM_FREEBSD.

diff --git a/tools/winebuild/build.h b/tools/winebuild/build.h
index 07ac347..b942934 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 9fef1c4..cc47120 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(_WIN32)



More information about the wine-patches mailing list