svn commit: r328987 - head/stand/kshim
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Feb 7 18:50:37 UTC 2018
Author: hselasky
Date: Wed Feb 7 18:50:36 2018
New Revision: 328987
URL: https://svnweb.freebsd.org/changeset/base/328987
Log:
A more definitions to kernel emulation shim in order to build stand/usb.
MFC after: 1 week
Sponsored by: Mellanox Technologies
Modified:
head/stand/kshim/bsd_kernel.h
Modified: head/stand/kshim/bsd_kernel.h
==============================================================================
--- head/stand/kshim/bsd_kernel.h Wed Feb 7 18:49:06 2018 (r328986)
+++ head/stand/kshim/bsd_kernel.h Wed Feb 7 18:50:36 2018 (r328987)
@@ -50,6 +50,8 @@
#define USB_BUS_EXPLORE_PROC(bus) (usb_process + 0)
#define USB_BUS_CONTROL_XFER_PROC(bus) (usb_process + 1)
#define SYSCTL_DECL(...)
+struct sysctl_ctx_list {
+};
struct sysctl_req {
void *newptr;
};
@@ -59,6 +61,13 @@ struct sysctl_req {
#define SYSCTL_INT(...)
#define SYSCTL_UINT(...)
#define SYSCTL_PROC(...)
+#define SYSCTL_ADD_NODE(...) NULL
+#define SYSCTL_ADD_U16(...) NULL
+#define SYSCTL_ADD_PROC(...) NULL
+#define sysctl_handle_int(...) EOPNOTSUPP
+#define sysctl_handle_string(...) EOPNOTSUPP
+#define sysctl_ctx_init(ctx) do { (void)(ctx); } while (0)
+#define sysctl_ctx_free(ctx) do { (void)(ctx); } while (0)
#define TUNABLE_INT(...)
#define MALLOC_DECLARE(...)
#define MALLOC_DEFINE(...)
@@ -177,6 +186,10 @@ struct uio;
struct thread;
struct malloc_type;
struct usb_process;
+
+#ifndef INT32_MAX
+#define INT32_MAX 0x7fffffff
+#endif
#ifndef HAVE_STANDARD_DEFS
#define _UINT8_T_DECLARED
More information about the svn-src-all
mailing list