Skip to content

Commit 773e1fb

Browse files
appsapps
apps
authored and
apps
committed
ver1.6.0.a 适配在macOS Sequoia 15.4 上编译,为此更新libs中的第三方代码zlib
1 parent 3e091c5 commit 773e1fb

20 files changed

+850
-1117
lines changed

Makefile.Darwin

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
CFLAGS=-O2 -I./src -I./libs -I./libs/miniupnpc -I./libs/libnatpmp -I./libs/zlib -D NO_GZIP=1
1+
CFLAGS=-O2 -I./src -I./libs -I./libs/miniupnpc -I./libs/libnatpmp -I./libs/zlib -D NO_GZIP=1 -Wno-deprecated-non-prototype
2+
3+
#-D Z_SOLO=0
24
CLI_LDFLAGS=-L/usr/lib -pthread
35
GNB_ES_LDFLAGS=-L/usr/lib -pthread
46

Makefile.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ CRYPTO_OBJS = \
4343
./libs/ed25519/verify.o \
4444
./src/gnb_binary.o \
4545
./src/crypto/arc4/arc4.o \
46+
./src/crypto/xor/xor.o \
4647
./src/crypto/random/gnb_random.o
4748

4849

Makefile.linux

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ install:${GNB_CLI} ${GNB_CRYPTO} ${GNB_ES} ${GNB_CTL}
6060
cp ${GNB_ES} ./bin/
6161

6262

63-
clean:
63+
clean:
6464
find . -name "*.o" -exec rm -f {} \;
6565
rm -f ${GNB_CLI} ${GNB_CRYPTO} ${GNB_ES} ${GNB_CTL}
6666
rm -f core core.*
6767
rm -f *.exe
68-

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OpenGNB
2-
The communication protocol of opengnb version 1.5.0 has been upgraded and is not compatible
2+
The communication protocol of opengnb version 1.6.0 has been upgraded and is not compatible
33
[Chinese](/README_CN.md) [English](/README.md)
44

55
*Note: Most of the content of this article is translated by Google translate from the Chinese version of the "OpenGNB User Manual", the content of this article is subject to the Chinese version.*

README_CN.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# OpenGNB
2-
opengnb 1.5.0 版本的通信协议已升级,不向后兼容
3-
version 1.3.0.0 protocol version 1.2.0
2+
opengnb 1.6.0 版本的通信协议已升级,不向后兼容
43

54
[Chinese](/README_CN.md) [English](/README.md)
65

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
i|0|101.32.178.3|9001
2-
i|0|47.93.29.76|9001
3-
i|0|45.78.14.231|9001
4-
i|0|110.238.106.225|9001
5-
i|0|usa.homedns.net|9001
2+
63

libs/zlib/adler32.c

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
#include "zutil.h"
99

10-
local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2));
11-
1210
#define BASE 65521U /* largest prime smaller than 65536 */
1311
#define NMAX 5552
1412
/* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */
@@ -60,11 +58,7 @@ local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2));
6058
#endif
6159

6260
/* ========================================================================= */
63-
uLong ZEXPORT adler32_z(adler, buf, len)
64-
uLong adler;
65-
const Bytef *buf;
66-
z_size_t len;
67-
{
61+
uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf, z_size_t len) {
6862
unsigned long sum2;
6963
unsigned n;
7064

@@ -131,20 +125,12 @@ uLong ZEXPORT adler32_z(adler, buf, len)
131125
}
132126

133127
/* ========================================================================= */
134-
uLong ZEXPORT adler32(adler, buf, len)
135-
uLong adler;
136-
const Bytef *buf;
137-
uInt len;
138-
{
128+
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len) {
139129
return adler32_z(adler, buf, len);
140130
}
141131

142132
/* ========================================================================= */
143-
local uLong adler32_combine_(adler1, adler2, len2)
144-
uLong adler1;
145-
uLong adler2;
146-
z_off64_t len2;
147-
{
133+
local uLong adler32_combine_(uLong adler1, uLong adler2, z_off64_t len2) {
148134
unsigned long sum1;
149135
unsigned long sum2;
150136
unsigned rem;
@@ -169,18 +155,10 @@ local uLong adler32_combine_(adler1, adler2, len2)
169155
}
170156

171157
/* ========================================================================= */
172-
uLong ZEXPORT adler32_combine(adler1, adler2, len2)
173-
uLong adler1;
174-
uLong adler2;
175-
z_off_t len2;
176-
{
158+
uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2, z_off_t len2) {
177159
return adler32_combine_(adler1, adler2, len2);
178160
}
179161

180-
uLong ZEXPORT adler32_combine64(adler1, adler2, len2)
181-
uLong adler1;
182-
uLong adler2;
183-
z_off64_t len2;
184-
{
162+
uLong ZEXPORT adler32_combine64(uLong adler1, uLong adler2, z_off64_t len2) {
185163
return adler32_combine_(adler1, adler2, len2);
186164
}

0 commit comments

Comments
 (0)