doceme / py-spidev

MIT License
461 stars 203 forks source link

Fix build with musl libc #39

Closed bkuhls closed 8 years ago

bkuhls commented 8 years ago

Include missing header to prevent build error:

spidev_module.c: In function ‘SpiDev_xfer’: spidev_module.c:330:27: error: ‘_IOC_SIZEBITS’ undeclared (first use in this function) status = ioctl(self->fd, SPI_IOC_MESSAGE(1), &xfer); ^ spidev_module.c:330:27: note: each undeclared identifier is reported only once for each function it appears in spidev_module.c: In function ‘SpiDev_xfer2’: spidev_module.c:421:27: error: ‘_IOC_SIZEBITS’ undeclared (first use in this function) status = ioctl(self->fd, SPI_IOC_MESSAGE(1), &xfer); ^

Signed-off-by: Bernd Kuhls bernd.kuhls@t-online.de