xfangfang / PPPwn_cpp

C++ rewrite of PPPwn (PlayStation 4 PPPoE RCE)
GNU General Public License v3.0
404 stars 59 forks source link

Fix building on freebsd #67

Closed Gouster4 closed 5 months ago

Gouster4 commented 6 months ago

Fix for this error: error: use of undeclared identifier 'INADDR_ANY' addr.sin_addr.s_addr = htonl(INADDR_ANY);

Fixes building on FreeBSD, and doesnt break building on Linux.

Including netinet/in.h brings INADDR_ANY definition.

xfangfang commented 5 months ago

Thanks for the contribution