<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Verdana, Geneva, sans-serif;">
<p>Currently the Swift source code is being patched so that it will build on FreeBSD. Does it make sense to just fold (most of?) these changes into the upstream Swift codebase?</p>
<p><br>
</p>
<p>A total of 9 files are patched.<span style="font-size: 12pt;"> </span><span style="font-size: 12pt;">A casual review of the patches indicates that they are all making simple modifications so that FreeBSD is a supported operating system. </span><span style="font-size: 12pt;">Here
is an example of one of the patches.</span></p>
<p><span style="font-size: 12pt;"></span></p>
<p><br>
</p>
<p>/usr/ports/lang/swift/files/patch-llvm_lib_Support_Unix_Process.inc complete listing<br>
</p>
<p><br>
</p>
<p>--- llvm/lib/Support/Unix/Process.inc.orig<span class="Apple-tab-span" style="white-space:pre">
</span>2016-02-26 00:51:43 UTC</p>
<p>+++ llvm/lib/Support/Unix/Process.inc</p>
<p>@@ -36,7 +36,7 @@</p>
<p> // DragonFlyBSD, OpenBSD, and Bitrig have deprecated <malloc.h> for</p>
<p> // <stdlib.h> instead. Unix.h includes this for us already.</p>
<p> #if defined(HAVE_MALLOC_H) && !defined(__DragonFly__) && \</p>
<p>- !defined(__OpenBSD__) && !defined(__Bitrig__)</p>
<p>+ !defined(__OpenBSD__) && !defined(__Bitrig__) && !defined(__FreeBSD__)</p>
<p> #include <malloc.h></p>
<p> #endif</p>
<p> #if defined(HAVE_MALLCTL)</p>
</div>
</body>
</html>