Fixes when compiling against musl libc.
from Justin Cormack via private email
This commit is contained in:
parent
8d578817f8
commit
40fd6d6fa3
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hijack.c,v 1.101 2013/07/18 22:58:35 pooka Exp $ */
|
||||
/* $NetBSD: hijack.c,v 1.102 2013/07/20 18:46:15 pooka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
|
||||
@ -31,7 +31,7 @@
|
||||
#include "rumpuser_port.h"
|
||||
|
||||
#if !defined(lint)
|
||||
__RCSID("$NetBSD: hijack.c,v 1.101 2013/07/18 22:58:35 pooka Exp $");
|
||||
__RCSID("$NetBSD: hijack.c,v 1.102 2013/07/20 18:46:15 pooka Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -44,6 +44,7 @@ __RCSID("$NetBSD: hijack.c,v 1.101 2013/07/18 22:58:35 pooka Exp $");
|
||||
#include <sys/stat.h>
|
||||
#include <sys/statvfs.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/uio.h>
|
||||
|
||||
#ifdef PLATFORM_HAS_KQUEUE
|
||||
#include <sys/event.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rumpuser_port.h,v 1.18 2013/04/28 13:17:26 pooka Exp $ */
|
||||
/* $NetBSD: rumpuser_port.h,v 1.19 2013/07/20 18:46:15 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Portability header for non-NetBSD platforms.
|
||||
@ -159,6 +159,14 @@ posix_memalign(void **ptr, size_t align, size_t size)
|
||||
#define __UNCONST(_a_) ((void *)(unsigned long)(const void *)(_a_))
|
||||
#endif
|
||||
|
||||
#ifndef __CONCAT
|
||||
#define __CONCAT(x,y) x ## y
|
||||
#endif
|
||||
|
||||
#ifndef __STRING
|
||||
#define __STRING(x) #x
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) || defined(__sun__) || defined (__CYGWIN__)
|
||||
#define RUMPUSER_RANDOM() random()
|
||||
#define RUMPUSER_USE_DEVRANDOM
|
||||
|
Loading…
Reference in New Issue
Block a user