Page MenuHomeFreeBSD

D37680.diff
No OneTemporary

D37680.diff

diff --git a/stand/libsa/ioctl.c b/stand/libsa/ioctl.c
--- a/stand/libsa/ioctl.c
+++ b/stand/libsa/ioctl.c
@@ -66,7 +66,7 @@
#include "stand.h"
int
-ioctl(int fd, u_long cmd, char *arg)
+ioctl(int fd, u_long cmd, void *arg)
{
struct open_file *f;
diff --git a/stand/libsa/stand.h b/stand/libsa/stand.h
--- a/stand/libsa/stand.h
+++ b/stand/libsa/stand.h
@@ -315,6 +315,7 @@
extern void closeall(void);
extern ssize_t read(int, void *, size_t);
extern ssize_t write(int, const void *, size_t);
+extern int ioctl(int, u_long, void *);
extern struct dirent *readdirfd(int);
extern void preload(int);
diff --git a/sys/sys/ioccom.h b/sys/sys/ioccom.h
--- a/sys/sys/ioccom.h
+++ b/sys/sys/ioccom.h
@@ -82,7 +82,7 @@
#define _IOC_INVALID (_IOC_VOID|_IOC_INOUT) /* Never valid cmd value,
use as filler */
-#else
+#elif !defined(_STANDALONE)
#include <sys/cdefs.h>

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 18, 7:17 AM (15 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15851774
Default Alt Text
D37680.diff (891 B)

Event Timeline