move sys socket in unix only macro

This commit is contained in:
Congcong Cai
2023-02-07 07:53:25 +08:00
parent 1fce2e046e
commit 7138184c90

View File

@@ -1,7 +1,6 @@
#include "Controller.h"
#include "Utils/Platform.hpp"
#include <sys/socket.h>
#ifdef _WIN32
#include <ws2tcpip.h>
@@ -9,6 +8,7 @@
#include <fcntl.h>
#include <signal.h>
#include <sys/errno.h>
#include <sys/socket.h>
#ifndef __APPLE__
#include <sys/prctl.h>
#endif