Checked into GIT (from randrik18 so names different):
0003-TERMUX-ifdefs-in-guicast.patch + (now 0002 in randrik19)
0047-Second-attempt-at-fixing-guicast-thread.h-on-non-and.patch (now 0038 in randrik19)
0028-Untested-add-aarch64-support-to-guicast-Makefile.patch (now 0021 in randrik19)
and this is still Untested! but looks good.
Andrew, this list is extremely helpful!
now lets try to define minimal patchset...
randrik19/ is a directory $
less
0002-TERMUX-ifdefs-in-guicast.patch = yes
BUT what is the purpose of changing SHMGET to SHM_GET? Was there a conflict name in android?
Very minimal testing on both 64bit and 32bit -- mostly just looked at differences to see if they made sense.