From: Guohuai Shi <guohuai....@windriver.com> Windows does not provide the getuid() API. Let's create a local one and return a fixed value 0 as the uid for testing.
Signed-off-by: Guohuai Shi <guohuai....@windriver.com> Signed-off-by: Xuzhou Cheng <xuzhou.ch...@windriver.com> Signed-off-by: Bin Meng <bin.m...@windriver.com> --- tests/qtest/virtio-9p-test.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/virtio-9p-test.c index 25305a4cf7..e81e3e3709 100644 --- a/tests/qtest/virtio-9p-test.c +++ b/tests/qtest/virtio-9p-test.c @@ -34,6 +34,13 @@ static uint32_t genfid(void) return fid_generator++; } +#ifdef CONFIG_WIN32 +static uint32_t getuid(void) +{ + return 0; +} +#endif + /** * Splits the @a in string by @a delim into individual (non empty) strings * and outputs them to @a out. The output array @a out is NULL terminated. -- 2.25.1