69 lines
1.3 KiB
Diff
69 lines
1.3 KiB
Diff
--- a/lib/libufs/Makefile
|
|
+++ b/lib/libufs/Makefile
|
|
@@ -7,7 +7,7 @@ SHLIB_MAJOR= 2
|
|
LIBSRCS= block.c cgroup.c inode.c sblock.c type.c
|
|
INCS= libufs.h
|
|
|
|
-LIB_type = static
|
|
+LIB_type = shared
|
|
ALL_CFLAGS+= -D_LIBUFS
|
|
ifdef LIBUFS_DEBUG
|
|
ALL_CFLAGS+= -D_LIBUFS_DEBUGGING
|
|
--- /dev/null
|
|
+++ b/sys/sys/sysctl.h
|
|
@@ -0,0 +1,44 @@
|
|
+#ifndef _SYS_SYSCTL_H_
|
|
+#define _SYS_SYSCTL_H_
|
|
+
|
|
+#include <errno.h>
|
|
+#include <stddef.h>
|
|
+
|
|
+static inline int
|
|
+sysctl(const int *name, unsigned int namelen, void *oldp, size_t *oldlenp,
|
|
+ const void *newp, size_t newlen)
|
|
+{
|
|
+ (void)name;
|
|
+ (void)namelen;
|
|
+ (void)oldp;
|
|
+ (void)oldlenp;
|
|
+ (void)newp;
|
|
+ (void)newlen;
|
|
+ errno = ENOSYS;
|
|
+ return -1;
|
|
+}
|
|
+
|
|
+static inline int
|
|
+sysctlbyname(const char *name, void *oldp, size_t *oldlenp, const void *newp,
|
|
+ size_t newlen)
|
|
+{
|
|
+ (void)name;
|
|
+ (void)oldp;
|
|
+ (void)oldlenp;
|
|
+ (void)newp;
|
|
+ (void)newlen;
|
|
+ errno = ENOSYS;
|
|
+ return -1;
|
|
+}
|
|
+
|
|
+static inline int
|
|
+sysctlnametomib(const char *name, int *mibp, size_t *sizep)
|
|
+{
|
|
+ (void)name;
|
|
+ (void)mibp;
|
|
+ (void)sizep;
|
|
+ errno = ENOSYS;
|
|
+ return -1;
|
|
+}
|
|
+
|
|
+#endif
|
|
--- a/sbin/fsdb/fsdbutil.c
|
|
+++ b/sbin/fsdb/fsdbutil.c
|
|
@@ -32,6 +32,7 @@ static const char rcsid[] =
|
|
#endif /* not lint */
|
|
|
|
#include <sys/param.h>
|
|
+#include <sys/sysmacros.h>
|
|
#include <ctype.h>
|
|
#include <err.h>
|
|
#include <grp.h>
|