--- a/lib/ioctl.h Sun Jul 22 23:17:59 2018 +0200
+++ b/lib/ioctl.h Mon Jul 30 11:18:45 2018 +0200
@@ -33,11 +33,7 @@
/*****************************************************************************/
-#ifdef USE_RTDM
-#include <rtdm/rtdm.h>
-#else
#include <sys/ioctl.h>
-#endif
/*****************************************************************************/
@@ -45,17 +41,9 @@
/*****************************************************************************/
-#ifdef USE_RTDM
-
-#define ioctl rt_dev_ioctl
-
-/* rt_dev_ioctl() returns negative error code */
-#define EC_IOCTL_IS_ERROR(X) ((X) < 0)
-#define EC_IOCTL_ERRNO(X) (-(X))
-
-#else
-
-#define ioctl ioctl
+/* FIXME : historical code inherited from difference
+ between RTDM ioctl an normal ioctl
+ -> should ioctl.h be removed ? */
/* libc's ioctl() always returns -1 on error and sets errno */
#define EC_IOCTL_IS_ERROR(X) ((X) == -1)
@@ -63,8 +51,6 @@
#include <errno.h>
-#endif
-
/*****************************************************************************/
#endif /* __EC_LIB_IOCTL_H__ */