btrfs-progs icon indicating copy to clipboard operation
btrfs-progs copied to clipboard

Added compiling target Android support

Open shadichy opened this issue 8 months ago • 2 comments

shadichy avatar Apr 24 '25 07:04 shadichy

Thanks, this will need to be reworked so there are no standalone ifdefs just for android. Compatibility wrappers should be hidden in files, detected at build time and the implementation switched by some ifdef. I'll apply the patches without changes as this is what you've probably tested and do the updates myself.

As this will become supported config, we'll need github actions for that too.

kdave avatar May 30 '25 15:05 kdave

The qsort_r can be emulated by providing a thread-local storage and calling qsort with a stub function that will call the comparator with the stored data. There's more qsort_r usage and likely will be in the future so we should not need to do the emulation everywhere.

kdave avatar May 30 '25 18:05 kdave

Now added to devel. I've reworked it so it's not touching every file and moved it to common. I have no way to test it, hopefully github actions will be able to, some sort of support should be there.

kdave avatar Jul 25 '25 23:07 kdave