|
@@ -13,6 +13,7 @@
|
|
|
|
|
|
#include "libqtest.h"
|
|
|
#include "config-host.h"
|
|
|
+#include "qga/guest-agent-core.h"
|
|
|
|
|
|
typedef struct {
|
|
|
char *test_dir;
|
|
@@ -457,7 +458,7 @@ static void test_qga_file_ops(gconstpointer fix)
|
|
|
cmd = g_strdup_printf("{'execute': 'guest-file-seek',"
|
|
|
" 'arguments': { 'handle': %" PRId64 ", "
|
|
|
" 'offset': %d, 'whence': %d } }",
|
|
|
- id, 6, SEEK_SET);
|
|
|
+ id, 6, QGA_SEEK_SET);
|
|
|
ret = qmp_fd(fixture->fd, cmd);
|
|
|
qmp_assert_no_error(ret);
|
|
|
val = qdict_get_qdict(ret, "return");
|
|
@@ -550,7 +551,7 @@ static void test_qga_file_write_read(gconstpointer fix)
|
|
|
cmd = g_strdup_printf("{'execute': 'guest-file-seek',"
|
|
|
" 'arguments': { 'handle': %" PRId64 ", "
|
|
|
" 'offset': %d, 'whence': %d } }",
|
|
|
- id, 0, SEEK_SET);
|
|
|
+ id, 0, QGA_SEEK_SET);
|
|
|
ret = qmp_fd(fixture->fd, cmd);
|
|
|
qmp_assert_no_error(ret);
|
|
|
val = qdict_get_qdict(ret, "return");
|