提交 3f5ce64c 编写于 作者: L liaogang

fix StorageEngine::singleton and std::function<void()> type unmatched.

上级 445d1e82
...@@ -25,8 +25,8 @@ namespace paddle { ...@@ -25,8 +25,8 @@ namespace paddle {
// Initialization StorageEngine singleton. // Initialization StorageEngine singleton.
// Other modules may rely on storage management, // Other modules may rely on storage management,
// so StorageEngine need to be initialized before other modules. // so StorageEngine need to be initialized before other modules.
// static InitFunction __init_storage_engine( static InitFunction __init_storage_engine([](){StorageEngine::singleton();},
// StorageEngine::singleton, std::numeric_limits<int>::max()); std::numeric_limits<int>::max());
StorageEngine::StorageEngine() : cpuAllocator_(nullptr) { StorageEngine::StorageEngine() : cpuAllocator_(nullptr) {
} }
......
...@@ -17,6 +17,7 @@ limitations under the License. */ ...@@ -17,6 +17,7 @@ limitations under the License. */
#include <sys/socket.h> #include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/tcp.h>
#include <fcntl.h> #include <fcntl.h>
#include <arpa/inet.h> #include <arpa/inet.h>
...@@ -25,12 +26,6 @@ limitations under the License. */ ...@@ -25,12 +26,6 @@ limitations under the License. */
#include <net/if_arp.h> #include <net/if_arp.h>
#include <sstream> #include <sstream>
#if defined(__OSX__) || defined(__APPLE__)
#include <netinet/tcp.h>
#else
#include <linux/tcp.h>
#endif
#include "LightNetwork.h" #include "LightNetwork.h"
#include "paddle/utils/Util.h" #include "paddle/utils/Util.h"
#include "paddle/utils/StringUtil.h" #include "paddle/utils/StringUtil.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册