]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Followup to r14646. The symbol TIOCSIG is not necessarily defined,
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 22 Oct 2014 09:25:03 +0000 (09:25 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 22 Oct 2014 09:25:03 +0000 (09:25 +0000)
e.g. on s390x with glibc 2.3.4. Modify the testcase to bypass the ioctl
call in that case.

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

memcheck/tests/linux/ioctl-tiocsig.c

index 1738066fa073b89cea8b28ddd417ab27277ae0bb..69c33e4428de845f9bb484aff1d1df48454585fc 100644 (file)
@@ -2,6 +2,8 @@
 
 int main()
 {
+#ifdef TIOCSIG
    ioctl(9, TIOCSIG, 9);
+#endif
    return 0;
 }