Framework for exporting system header to user space (#59)
[lunaix-os.git] / lunaix-os / usr / libc / src / posix / ioctl.c
index d3a89a8106a70781ac18b85633505ab20227d362..3585a059cbb2057d40be874916cfc6f05a78415d 100644 (file)
@@ -1,5 +1,5 @@
-#include <lunaix/syscall.h>
-#include <lunaix/ioctl.h>
+#include <syscall.h>
+#include <sys/ioctl.h>
 #include <stdarg.h>
 
 int __attribute__((noinline))
@@ -8,7 +8,7 @@ ioctl(int fd, int req, ...)
     va_list ap;
     va_start(ap, req);
 
-    int ret = do_lunaix_syscall(__SYSCALL_ioctl, fd, req, &ap);
+    int ret = do_lunaix_syscall(__NR__lxsys_ioctl, fd, req, &ap);
     
     va_end(ap);
     return ret;