<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;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello,</p>
<p><br>
</p>
<p>I'm currently working on a port of Swift to Android. Since Android's libc is missing a few required methods, I added code from a few other sources to implement the functionality. Specifically, I added an implementation of posix_spawn from the FreeBSD libc, floating point
routines from Android NDK's copy of SunSoft FDLIBM (which just requires attribution), and a getline implementation from the Android source (Apache licensed).</p>
<p><br>
</p>
<p>I'm wondering whether I'm allowed to do this. While their licenses are compatible with Apache license, they all require attribution at the top of the source, but Swift's contribution guidelines only allows the Swift license header. I don't think there's
any third-party code in Swift currently, so I can't find a precedent for what to do in this situation.</p>
<p><br>
</p>
<p>Is the inclusion of third party code allowed, and if so, what should the license header on their files look like?</p>
<p><br>
</p>
<p>Zhuowei</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
</body>
</html>