Commit a0e1c71
committed
Include arpa/inet.h instead of sys/endian.h
The header is included to get defintion for htons. In termux the
definition is in sys/endian.h, but on other systems it is in
arpa/inet.h.
arpa/inet.h includes sys/endian.h though, so including that header
works in termux as well.
Change to arpa/inet.h so that termux-api-package can be easily
compiled both in termux and for other systems.1 parent 22d6c10 commit a0e1c71
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments