summaryrefslogtreecommitdiffstats
path: root/tests/tcg/linux-test.c
diff options
context:
space:
mode:
authorCatalin Patulea <catalinp@google.com>2012-10-16 16:00:23 -0400
committerAurelien Jarno <aurelien@aurel32.net>2012-10-19 20:40:21 +0200
commitf62cb1b6ddc2c82694abac23ab5eeddd85800074 (patch)
treeb4cb4a6c960772e95394bd030ca4e8ecb2cf7da0 /tests/tcg/linux-test.c
parent7748b8cb1d100105753a80976d2d02ab107d8107 (diff)
downloadhqemu-f62cb1b6ddc2c82694abac23ab5eeddd85800074.zip
hqemu-f62cb1b6ddc2c82694abac23ab5eeddd85800074.tar.gz
tests/tcg: fix build
This broke when the tests were moved from tests/ to tests/tcg/. On x86_64 host/i386-linux-user non-kvm guest, test-i386 and test-mmap are broken, but at least they build. To build/run the tests: $ cd $BUILD_PATH/tests/tcg $ SRC_PATH=path/to/qemu make <target> Signed-off-by: Catalin Patulea <catalinp@google.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tests/tcg/linux-test.c')
-rw-r--r--tests/tcg/linux-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tcg/linux-test.c b/tests/tcg/linux-test.c
index 2e4a746..83cb32d 100644
--- a/tests/tcg/linux-test.c
+++ b/tests/tcg/linux-test.c
@@ -16,6 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#define _GNU_SOURCE
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
@@ -38,6 +39,7 @@
#include <dirent.h>
#include <setjmp.h>
#include <sys/shm.h>
+#include <sched.h>
#define TESTPATH "/tmp/linux-test.tmp"
#define TESTPORT 7654
OpenPOWER on IntegriCloud