diff options
author | yan11.meng <yan11.meng@samsung.com> | 2020-05-11 14:19:57 +0800 |
---|---|---|
committer | yan11.meng <yan11.meng@samsung.com> | 2020-05-11 14:58:20 +0800 |
commit | d8d85e8b61ab8137de55b1fa8a32c1b68fd0e4fb (patch) | |
tree | 1f8378ae663cfbf3b6e4b80b6a7844218580496d | |
parent | d0af4815f01745ecd91ac50c0238f6de0eb5db30 (diff) | |
download | qemu-arm-static-d8d85e8b61ab8137de55b1fa8a32c1b68fd0e4fb.tar.gz qemu-arm-static-d8d85e8b61ab8137de55b1fa8a32c1b68fd0e4fb.tar.bz2 qemu-arm-static-d8d85e8b61ab8137de55b1fa8a32c1b68fd0e4fb.zip |
fix build error for ubuntu20.04submit/trunk/20200617.133020submit/trunk/20200615.140020submit/trunk/20200612.191020submit/trunk/20200612.185510submit/trunk/20200612.182210submit/trunk/20200612.180310submit/trunk/20200612.131210accepted/tizen/devbase/tools/20200618.010601
"undefined reference to `stime'"
Change-Id: I7fac778248574a002fb13c7c4b1bfd84e07bdc0f
Signed-off-by: yan11.meng <yan11.meng@samsung.com>
-rw-r--r-- | linux-user/syscall.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 998ae6a67..c702119ea 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5459,10 +5459,11 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, #ifdef TARGET_NR_stime /* not on alpha */ case TARGET_NR_stime: { - time_t host_time; - if (get_user_sal(host_time, arg1)) + struct timespec ts; + ts.tv_nsec = 0; + if (get_user_sal(ts.tv_sec, arg1)) goto efault; - ret = get_errno(stime(&host_time)); + ret = get_errno(clock_settime(CLOCK_REALTIME, &ts)); } break; #endif |