SPI not working on libmraa

The example program test-spi.c on the wiki kinda works without any errors, but the data received regardless of whether I short the SPI TX and RX pins or not is always 0xFF.
I already looked into libmraa, added the pin configuration for the N10 since currently libmraa only has it for the RockPi 4, and discovered that the issue comes from the return value of the function call ioctl.

Now I am stuck without any idea as to how to fix this issue with SPI, as everything else works (I2C, UART, etc.). Since they use ioctl calls as well, I cannot assume that this basic library is at fault, so where is the problem?
Any thoughts or advice regarding this would be appreciated.