Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build with musl libc #39

Merged
merged 1 commit into from Mar 7, 2016
Merged

Fix build with musl libc #39

merged 1 commit into from Mar 7, 2016

Conversation

bkuhls
Copy link

@bkuhls bkuhls commented Jan 31, 2016

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

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
doceme added a commit that referenced this pull request Mar 7, 2016
Fix build with musl libc
@doceme doceme merged commit c443216 into doceme:master Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants