Skip to content

Commit e79986b

Browse files
committed
Revert "additional cleanup"
This reverts commit 63beb57. ntohl(3) requires <arpa/inet.h> which got removed from the !WIN32 block. Found through #7181 failing CI after only applying msgpack-python's patches: https://github.com/borgbackup/borg/actions/runs/3605243326/jobs/6080079422#step:8:51 ``` src/borg/algorithms/msgpack/sysdep.h:90:28: error: ‘ntohs’ was not declared in this scope 90 | # define _msgpack_be16(x) ntohs(x) | ^~~~~ ```
1 parent 63beb57 commit e79986b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/borg/algorithms/msgpack/sysdep.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ typedef unsigned int _msgpack_atomic_counter_t;
6161
#endif
6262
#endif
6363

64+
#else
65+
#include <arpa/inet.h> /* __BYTE_ORDER */
6466
#endif
6567

6668
#if !defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)

0 commit comments

Comments
 (0)