git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4870
3c298f89-4303-0410-b956-
a3cf2f4a3e73
#include <errno.h>
#include <unistd.h>
#if defined(__APPLE__)
#include <errno.h>
#include <unistd.h>
#if defined(__APPLE__)
-#include <machine/endian.h>
-#include <machine/byte_order.h>
+#include <machine/endian.h>
+#include <machine/byte_order.h>
#define __BYTE_ORDER BYTE_ORDER
#define __BIG_ENDIAN BIG_ENDIAN
#define bswap_16(x) NXSwapShort(x)
#define __BYTE_ORDER BYTE_ORDER
#define __BIG_ENDIAN BIG_ENDIAN
#define bswap_16(x) NXSwapShort(x)
- fprintf(stderr, "Usage: trx [-o outfile] [-m maxlen] [-a align] [-b offset] file [file [file]]\n");
+ fprintf(stderr, "Usage: trx [-o outfile] [-m maxlen] [-a align] [-b offset] [-f file] [-f file [-f file]]\n");
- while ((c = getopt(argc, argv, "-:o:m:a:b:")) != -1) {
+ while ((c = getopt(argc, argv, "-:o:m:a:b:f:")) != -1) {
case 1:
p->offsets[i++] = STORE32_LE(cur_len);
case 1:
p->offsets[i++] = STORE32_LE(cur_len);