aboutsummaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r--miscutils/hdparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 017d5bf19..52dc11a28 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -48,7 +48,7 @@
#include <asm/byteorder.h>
-#if __BYTE_ORDER == __BIG_ENDIAN
+#if (__BYTE_ORDER == __BIG_ENDIAN) && !defined(__USE_XOPEN)
#define __USE_XOPEN
#endif