openbsd fixes
This commit is contained in:
parent
dbb95e1f4b
commit
a120e66148
2 changed files with 4 additions and 0 deletions
2
mk/re.mk
2
mk/re.mk
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue