Skip to content

Conversation

@dcoshea
Copy link

@dcoshea dcoshea commented Dec 28, 2017

Previously, "checking whether TUN/TAP is supported..." in "configure"
failed to detect TUN/TAP support due to compile errors due to "struct
sockaddr" not being defined. This fix causes sys/socket.h to be
#included if it exists.

As noted in #153 (comment): "Pull Request #64 includes a fix for this issue in BasiliskII/src/Unix/configure.ac amongst other changes." However, that PR doesn't include the #ifdef that I've included here. I'm assuming it's preferable to use the #ifdef; it certainly works for me anyway.

…bix#153).

Previously, "checking whether TUN/TAP is supported..." in "configure"
failed to detect TUN/TAP support due to compile errors due to "struct
sockaddr" not being defined.  This fix causes sys/socket.h to be
#included if it exists.
@asvitkine asvitkine merged commit 86c5613 into cebix:master Dec 28, 2017
rakslice pushed a commit to rakslice/macemu that referenced this pull request Oct 16, 2020
Fix TUN/TAP detection on CentOS 7 (#include <sys/socket.h>) (fixes cebix#153).
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