openbsd fixes

This commit is contained in:
Richard Aas 2014-11-24 05:33:48 +00:00
parent dbb95e1f4b
commit a120e66148
2 changed files with 4 additions and 0 deletions

View file

@ -503,7 +503,9 @@ HAVE_EPOLL := $(shell [ -f $(SYSROOT)/include/sys/epoll.h ] || \
[ -f $(SYSROOT)/include/$(MACHINE)/sys/epoll.h ] \
&& echo "1")
endif
ifneq ($(OS),openbsd)
HAVE_LIBRESOLV := $(shell [ -f $(SYSROOT)/include/resolv.h ] && echo "1")
endif
ifneq ($(HAVE_LIBRESOLV),)
CFLAGS += -DHAVE_LIBRESOLV

View file

@ -43,7 +43,9 @@ static bool inited = false;
*/
void rand_init(void)
{
#ifndef USE_OPENSSL
srand((uint32_t) tmr_jiffies());
#endif
#if RAND_DEBUG
inited = true;