代码拉取完成,页面将自动刷新
#!/bin/sh
#SOCKET_ERROR is defined as -1 on windows platform here is no need
sed -i 's/^#define SOCKET_ERROR 4/\/\/#define SOCKET_ERROR 4/' skynet-src/socket_server.h
#mingw 5.3 some header files are changed
sed -i 's/^#include \"sys\/socket.h\"/#include <sys\/socket.h> \r#include <time.h>/' platform/platform.h
#mingw 5.3 _WIN32_WINNT default defined as _WIN32_WINNT_WIN2K(0x0500) for Windows 2000
sed -i 's/^#ifndef _WIN32_WINNT/#ifdef _WIN32_WINNT\r#undef _WIN32_WINNT/' platform/sys/socket.h
#for strsep strsep inet_ntop clock_gettime warning on complie time
sed -i 's/^CFLAGS := -g -O2 -Wall -I$(PLATFORM_INC) -I$(LUA_INC) $(MYCFLAGS)/CFLAGS := -g -O2 -includeplatform.h -Wall -I$(PLATFORM_INC) -I$(LUA_INC) $(MYCFLAGS)/' Makefile
#using nanosleep replace usleep whick was marked deprecated in mingw5.3
sed -i 's/\tusleep/ nusleep/g' skynet-src/skynet_start.c lualib-src/lua-socket.c lualib-src/lua-debugchannel.c lualib-src/lua-clientsocket.c
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。