pkgsrc/sysutils/libvirt/patches/patch-src-util-virutil.c
agc 0b216103f5 Update sysutils/libvirt from 0.9.3 to 1.2.1
Reason for updating: numerous security vulnerabilities have been fixed,
and many changes made - functional and fixes. The list is really too long
to include here:

	-rw-r--r--  1 agc  wheel  3437489 Jan 24 18:26 /tmp/news
2014-01-25 02:54:27 +00:00

20 lines
457 B
C

$NetBSD: patch-src-util-virutil.c,v 1.1 2014/01/25 02:54:27 agc Exp $
Only use uselocale() if we have it
--- src/util/virutil.c 2014/01/25 02:40:22 1.1
+++ src/util/virutil.c 2014/01/25 02:41:41
@@ -428,9 +428,13 @@
if (virLocaleInitialize() < 0)
goto error;
+#ifdef HAVE_USELOCALE
old_loc = uselocale(virLocale);
+#endif
ret = virAsprintf(strp, "%lf", number);
+#ifdef HAVE_USELOCALE
uselocale(old_loc);
+#endif
#else