mascarenhas / alien

A C FFI for Lua
http://mascarenhas.github.com/alien/
143 stars 45 forks source link

alien.c:358:54: error: ‘FFI_SYSV’ undeclared here (not in a function) #64

Open senlinding opened 2 years ago

senlinding commented 2 years ago

alien.c:358:54: error: ‘FFI_SYSV’ undeclared here (not in a function)

ossie-git commented 1 year ago

I ran into this and was able to solve it by modifying alien.c and adding these lines:

#if defined (X86_64) || defined (__x86_64__)
#define FFI_SYSV FFI_UNIX64
#endif

and it compiled and ran successfully