summaryrefslogtreecommitdiff
path: root/src/util/virnetdevvportprofile.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2019-10-02 18:01:11 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2019-10-14 10:54:42 +0100
commit27cb4c1a53090ed8903f20e09a20b6f651162252 (patch)
tree6d779cd38a7afbb9e2026a38178dcac9d677acb5 /src/util/virnetdevvportprofile.c
parentc4d18e8b3e5c2c7304acaacf51311eba7d4b771b (diff)
downloadlibvirt-27cb4c1a53090ed8903f20e09a20b6f651162252.tar.gz
build: remove use of usleep gnulib module in favour of g_usleep
The usleep function was missing on older mingw versions, but we can rely on it existing everywhere these days. It may only support times upto 1 second in duration though, so we'll prefer to use g_usleep instead. The commandhelper program is not changed since that can't link to glib. Fortunately it doesn't need to build on Windows platforms either. Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'src/util/virnetdevvportprofile.c')
-rw-r--r--src/util/virnetdevvportprofile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/virnetdevvportprofile.c b/src/util/virnetdevvportprofile.c
index a5ecd783f2..048f891920 100644
--- a/src/util/virnetdevvportprofile.c
+++ b/src/util/virnetdevvportprofile.c
@@ -999,7 +999,7 @@ virNetDevVPortProfileOpCommon(const char *ifname, int ifindex,
break;
}
- usleep(STATUS_POLL_INTERVL_USEC);
+ g_usleep(STATUS_POLL_INTERVL_USEC);
}
if (status == PORT_PROFILE_RESPONSE_INPROGRESS) {