#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/endian.h>
#include <zstd.h>
#include <sysexits.h>
#endif // __FreeBSD__
+static uint32_t
+le32dec(const char buf[4])
+{
+ return (uint32_t)(buf[3]) << 24 | (uint32_t)(buf[2]) << 16 |
+ (uint32_t)(buf[1]) << 8 | (uint32_t)(buf[0]);
+}
+
int
main(int argc, char **argv)
{