1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-31 11:42:05 +00:00

Add a endianness check to _hashindex.c until the code is big endian safe

This commit is contained in:
Jonas Borgström 2013-06-28 12:38:54 +02:00
parent cda6d4ed6c
commit 0b697117ba

View file

@ -9,6 +9,10 @@
#include <unistd.h>
#include <sys/mman.h>
#if defined(__BYTE_ORDER__)&&(__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
#error This code is not big endian safe yet
#endif
typedef struct {
char magic[8];
int32_t num_entries;