aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-14 22:11:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-14 22:11:21 +0000
commitf524e29d8006731d6c76e3505d52ee3a58b226b6 (patch)
tree728c4495b3cb35749deb64a64bed33557c0750a0
parentda0159f156c40f741d427e34a95f00918c54f54e (diff)
downloadupstream-f524e29d8006731d6c76e3505d52ee3a58b226b6.tar.gz
upstream-f524e29d8006731d6c76e3505d52ee3a58b226b6.tar.bz2
upstream-f524e29d8006731d6c76e3505d52ee3a58b226b6.zip
cleanup
SVN-Revision: 5097
-rw-r--r--tools/sstrip/Makefile1
-rw-r--r--tools/sstrip/src/sstrip.c26
2 files changed, 1 insertions, 26 deletions
diff --git a/tools/sstrip/Makefile b/tools/sstrip/Makefile
index 4e409e0d8d..87f331214a 100644
--- a/tools/sstrip/Makefile
+++ b/tools/sstrip/Makefile
@@ -13,6 +13,7 @@ OS:=$(shell uname)
ifeq ($(HOST_OS),Darwin)
CFLAGS += -I./include
endif
+CFLAGS += -I $(TOPDIR)/tools/include -include endian.h
define Build/Compile
$(CC) $(CFLAGS) -o $(PKG_BUILD_DIR)/sstrip src/sstrip.c
diff --git a/tools/sstrip/src/sstrip.c b/tools/sstrip/src/sstrip.c
index 60c12c972c..6607d12500 100644
--- a/tools/sstrip/src/sstrip.c
+++ b/tools/sstrip/src/sstrip.c
@@ -60,32 +60,6 @@
#include <fcntl.h>
#include <elf.h>
-#ifdef __FreeBSD__
-/**
- * This seems to work on FreeBSD 5.3, should
- * work on all newer versions as well. I have
- * no idea if it will work on versions < 5.3
- *
- * Joe Estock (guru) <jestock at nutextonline.com>
- */
-#include <sys/endian.h>
-#define bswap_64 __bswap64
-#define bswap_32 __bswap32
-#define bswap_16 __bswap16
-#elif defined(__APPLE__)
-#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 bswap_32(x) NXSwapInt(x)
-#define bswap_64(x) NXSwapLongLong(x)
-#else
-#include <endian.h>
-#include <byteswap.h>
-#endif
-
-
#ifndef TRUE
#define TRUE 1
#define FALSE 0