cebix / macemu

Basilisk II and SheepShaver Macintosh emulators
1.38k stars 289 forks source link

Fix TUN/TAP detection on CentOS 7 (#include <sys/socket.h>) (fixes #153). #155

Closed dcoshea closed 6 years ago

dcoshea commented 6 years ago

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 https://github.com/cebix/macemu/issues/153#issuecomment-354260998: "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.