iagox86 / dnscat2

BSD 3-Clause "New" or "Revised" License
3.43k stars 601 forks source link

fix: compile on CentOS5 with gcc 4.1.2 #91

Closed bthaler closed 8 years ago

bthaler commented 8 years ago

CentOS 5 uses gcc 4.1.2, this leads to a compile-time error.


In file included from libs/crypto/sha3.c:22: libs/crypto/byte_order.h:138:3: error: #error "bswap_64 unsupported"

make: *\ [libs/crypto/sha3.o] Error 1

This patch changes the "GNUC > 4" check to "GNUC >= 4" to make dnscat client compile cleanly on CentOS5 machine.