Add a few more headers required by getaddrinfo(3).
Follow-up to cbb7f57; the code built on Linux despite the lack of required includes most likely because netdb.h ends up indirectly including sys/types.h and sys/socket.h.
This commit is contained in:
parent
3191a6b7ab
commit
d703adbdc1
2 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include <QFutureWatcher>
|
||||
// system
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
|
||||
namespace KWin {
|
||||
|
|
|
@ -28,6 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include <xcb/xcb.h>
|
||||
// system
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
|
||||
namespace KWin {
|
||||
|
|
Loading…
Reference in a new issue