⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tosock1.sh

📁 snmp的源代码,已经在我的ubuntu下编译通过
💻 SH
字号:
:cat <<-EXPLAINConvert use of ws2_32 to wsock32, and invoke winsock 1.x at WOSA startup.This script will change the sources to use Winsock 1.To complete the change, you must manually comment out all occurrencesof ws2tcpip.h.If you decide later to undo these changes, you must do so manually.If you do not type "y" in response to the next question,this script will not make any change.EXPLAINecho -n "Make irreversible change to use Winsock 1 ?[n] "read ansif [ "x$ans" != "xy" ] ; then echo echo "    Exiting without making changes." echo exit 0ficd `dirname $0` ; HERE=`pwd`cd ../..  # up from win32/distgrep -rl ws2_32 . | grep -v tosock1.sh > xzfor aa in `cat xz` ; doed -s $aa <<-EOF,s#ws2_32#wsock32#gwqEOFdonerm -f xzgrep -rl winsock2 . | grep -v tosock1.sh > xzfor aa in `cat xz` ; doed -s $aa <<-EOF,s#winsock2#winsock#gwqEOFdonerm -f xzed -s snmplib/system.c <<-EOF,s/MAKEWORD(2,2);/MAKEWORD(1,1);/gwqEOFexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -