summaryrefslogtreecommitdiff
path: root/backends/i386_initreg.c
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2015-06-26 20:36:01 +0200
committerMark Wielaard <mjw@redhat.com>2015-06-27 14:56:12 +0200
commit65251494ae6eae66bfdf9134189fd11b1ee8e9b5 (patch)
treefb82fd40028bc0216e429aba592f918791edff0b /backends/i386_initreg.c
parentfaf0d3d73dd8e97218e09d631e1305e5ff1c89e2 (diff)
downloadelfutils-65251494ae6eae66bfdf9134189fd11b1ee8e9b5.tar.gz
Reduce scope of some includes
Use some includes only according to the #ifdef block of the respective code, or matching the fact they are Linux-only. This way, includes potentially unportable are not unconditionally used. Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
Diffstat (limited to 'backends/i386_initreg.c')
-rw-r--r--backends/i386_initreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/i386_initreg.c b/backends/i386_initreg.c
index 51fd9ea6..c3442823 100644
--- a/backends/i386_initreg.c
+++ b/backends/i386_initreg.c
@@ -30,7 +30,7 @@
# include <config.h>
#endif
-#if defined __i386__ || defined __x86_64__
+#if (defined __i386__ || defined __x86_64__) && defined(__linux__)
# include <sys/types.h>
# include <sys/user.h>
# include <sys/ptrace.h>