
29 Jan
2013
29 Jan
'13
5:29 a.m.
On 25/01/13 08:36, Nathan Hüsken wrote:
Hey,
When compiling the cross compiler for android, it fails because of undefined symbols to mkfifo, tcgetattr and tcsetattr. This seems to be because the android ndk defines them as inline.
This patch wraps them (when compiling for android) in __mkfifo __tcgetattr and __tcsetattr.
If you're just using straightforward wrappers, a better way to do it is to declare the foreign import with 'capi' instead of 'ccall'. This generates the wrapper for you. Cheers, Simon