diff options
Diffstat (limited to 'util/descrypt.c')
-rw-r--r-- | util/descrypt.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/util/descrypt.c b/util/descrypt.c index 6ea6dbe8..ecac9001 100644 --- a/util/descrypt.c +++ b/util/descrypt.c @@ -357,9 +357,12 @@ static int des_setkey(const char *key) { if(!des_initialised) des_init(); - - rawkey0 = ntohl(*(unsigned long *) key); - rawkey1 = ntohl(*(unsigned long *) (key + 4)); + +#ifdef __linux__ +#include <netinet/in.h> +#endif + rawkey0 = ntohl(*(uint32_t*) key); + rawkey1 = ntohl(*(uint32_t*) (key + 4)); if((rawkey0 | rawkey1) && rawkey0 == old_rawkey0 |