jedisct1 / dsvpn

A Dead Simple VPN.
MIT License
5.16k stars 393 forks source link

Help compile on SmartOS (Solaris) #80

Closed a1730 closed 3 years ago

a1730 commented 3 years ago

Hi,

GCC compile of SmartOS failed with:

src/os.c:206:19: error: 'SIOCSIFMTU' undeclared (first use in this function) 206 | if (ioctl(fd, SIOCSIFMTU, &ifr) != 0) {

Can you please direct me to a replacement call or workaround? This is way over my head because my usual fix, grep -ilr SIOCSIFMTU /usr/include, does not return any file name so fixing this is not as simple as adding missing include files. Thank you.

a1730 commented 3 years ago

The issue disappeared after adding -DBSD_COMP to the compilation flags. Apologies for the false alarm.