Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107658546
D37680.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
891 B
Referenced Files
None
Subscribers
None
D37680.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D37680: stand: Make ioctl declaration consistent
Attached
Detach File
Event Timeline
Log In to Comment