Hello,

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).


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.


Is the inclusion of third party code allowed, and if so, what should the 
license header on their files look like?


Zhuowei



_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to