OSDN Git Service

random_seed: Only read /dev/*random if we have unistd.h
authorRonald S. Bultje <rsbultje@gmail.com>
Sun, 24 Jun 2012 18:26:31 +0000 (21:26 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 29 Jun 2012 12:52:07 +0000 (15:52 +0300)
commitf985113075b0c571b1b1b166fe28f87f0f291be5
treebbfae34b3c0990aa1b797b66c3e962ffaa44fd47
parente312fcde6a46d7fdfc5f3f880dd97987402d7138
random_seed: Only read /dev/*random if we have unistd.h

unistd.h is used for open/read/close, but if this header does not
exist, there's probably no use in trying to open /dev/*random
at all.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/random_seed.c