]> Zhao Yanbai Git Server - minix.git/commitdiff
protect ioctl() with __BEGIN/__END_DECLS for C++
authorBen Gras <ben@minix3.org>
Sat, 9 Jul 2011 14:07:53 +0000 (16:07 +0200)
committerBen Gras <ben@minix3.org>
Sat, 9 Jul 2011 14:12:40 +0000 (16:12 +0200)
common/include/minix/ioctl.h

index f6f79fe9b2a7e36cba01e97c83ac164afc617e86..c71f672ece8128035124b9eb717199dd85a49097 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef _M_IOCTL_H
 #define _M_IOCTL_H
 
+#include <sys/cdefs.h>
+
 #ifndef _TYPES_H
 #include <minix/types.h>
 #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 */