qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] rng-random: only build on POSIX platforms


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH] rng-random: only build on POSIX platforms
Date: Sun, 18 Nov 2012 11:29:16 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20121027 Iceowl/1.0b1 Icedove/3.0.11

Am 17.11.2012 14:41, schrieb Anthony Liguori:
There is no /dev/random on win32.

Cc: Stefan Weil<address@hidden>
Signed-off-by: Anthony Liguori<address@hidden>
---
  backends/Makefile.objs | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/backends/Makefile.objs b/backends/Makefile.objs
index 875eebc..8836761 100644
--- a/backends/Makefile.objs
+++ b/backends/Makefile.objs
@@ -1 +1,2 @@
-common-obj-y += rng.o rng-random.o rng-egd.o
+common-obj-y += rng.o rng-egd.o
+common-obj-$(CONFIG_POSIX) += rng-random.o

The patch fixes a build issue on w32 / w64, but the reason given
is misleading: yes, Windows has no /dev files, but the MinGW
library tries to emulate the most important interfaces from /dev.

There is a /dev/random with MinGW, and it does what it is supposed
to do. See this URL for more supported "devices":
http://srv.onzk.net/linwin/apache-php3-mysql/CygWin_20b_98-4_Documents_OnLine/CygWin-Ug-Net/using-specialnames.html

Regards
Stefan W.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]