Skip to content

Change test for <sys/io.h> header file#2

Closed
cerna wants to merge 2 commits intozultron:pr-299-rebasefrom
cerna:pr-299-rebase
Closed

Change test for <sys/io.h> header file#2
cerna wants to merge 2 commits intozultron:pr-299-rebasefrom
cerna:pr-299-rebase

Conversation

@cerna
Copy link

@cerna cerna commented Aug 28, 2020

This should solve the test failure in machinekit#303

zultron and others added 2 commits August 28, 2020 05:23
The HAS_SYS_IO and SYS_IO_DEFINED switches were up to now dependent on the HOST architecture type (allow on all but 'arm64'). This actually caused problems on Ubuntu Focal 20.04 LTS, where libc6-dev package on 'armhf' platform does not include the <sys/io.h> file.

This change use AC_CHECK_HEADER macro in Autoconf script to determine if the system has or has not the header.

Patch includes minimal change to the build-flow (i.e. does not care if this is the best macro for the task, only to cause the least amount of ripple).
@zultron
Copy link
Owner

zultron commented Aug 28, 2020

Oh, I'm sorry, I didn't see this when I came up with my own version that did basically the same thing! I think this is the correct approach.

@zultron zultron force-pushed the pr-299-rebase branch 2 times, most recently from 21a2d2c to 8edde13 Compare August 28, 2020 18:18
@cerna
Copy link
Author

cerna commented Aug 28, 2020

Oh, I'm sorry, I didn't see this when I came up with my own version that did basically the same thing! I think this is the correct approach.

We are not five, we are not collecting points for Mrs. Kindergarten Teacher, it doesn't matter whose commit is actually merged (and yours is actually much better).

@cerna cerna closed this Aug 28, 2020
@cerna cerna deleted the pr-299-rebase branch August 29, 2020 10:56
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.

2 participants