From c63a0cfddcd42e04be6ef8833b3975fbbbbfe802 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sat, 9 Jul 2011 16:07:53 +0200 Subject: [PATCH] protect ioctl() with __BEGIN/__END_DECLS for C++ --- common/include/minix/ioctl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/include/minix/ioctl.h b/common/include/minix/ioctl.h index f6f79fe9b..c71f672ec 100644 --- a/common/include/minix/ioctl.h +++ b/common/include/minix/ioctl.h @@ -7,6 +7,8 @@ #ifndef _M_IOCTL_H #define _M_IOCTL_H +#include + #ifndef _TYPES_H #include #endif @@ -63,6 +65,8 @@ #define _IORW(x,y,t) _IO(x,y) #endif +__BEGIN_DECLS int ioctl(int _fd, int _request, void *_data); +__END_DECLS #endif /* _M_IOCTL_H */ -- 2.44.0