]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix compilation error on Solaris.
authorIvo Raisr <ivosh@ivosh.net>
Tue, 26 Jan 2016 04:31:04 +0000 (04:31 +0000)
committerIvo Raisr <ivosh@ivosh.net>
Tue, 26 Jan 2016 04:31:04 +0000 (04:31 +0000)
Include <sys/segments.h> only on x86/amd64 architecture.
n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15774

memcheck/tests/solaris/thr_daemon_exit_standalone.c

index cf1987f7c46d012b9717de549d6d4fa79125e2c5..d319bcd4344d2e42c83ed930e00c355b5fc5fab1 100644 (file)
@@ -3,10 +3,13 @@
 
 #include <sys/lwp.h>
 #include <sys/mman.h>
-#include <sys/segments.h>
 #include <sys/syscall.h>
 #include <sys/ucontext.h>
 
+#if defined(__amd64) || defined(__i386)
+#include <sys/segments.h>
+#endif
+
 extern void bzero(void *ptr, size_t n);
 
 #if defined(VGP_x86_solaris)