summaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c
diff options
context:
space:
mode:
authorRob Landley2006-03-04 22:40:25 +0000
committerRob Landley2006-03-04 22:40:25 +0000
commit688ed0d7606c0563073f588098b9bedf904c70a9 (patch)
tree123b85ec83aede5c1323d95297dc6d67f3b9e1f5 /miscutils/hdparm.c
parentd9969ea175503bdd37fdc966a0ed38bb6f81ff89 (diff)
downloadbusybox-688ed0d7606c0563073f588098b9bedf904c70a9.zip
busybox-688ed0d7606c0563073f588098b9bedf904c70a9.tar.gz
Patch from Robert P. Day, moving byte order checks to use platform.h macros.
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r--miscutils/hdparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index e733c91..bd3065d 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -48,8 +48,8 @@
#include <asm/byteorder.h>
-#if (__BYTE_ORDER == __BIG_ENDIAN) && !defined(__USE_XOPEN)
-#define __USE_XOPEN
+#if BB_BIG_ENDIAN && !defined(__USE_XOPEN)
+# define __USE_XOPEN
#endif
/* device types */