From e1d4f4b8d95b961eb7d0d2cc5ff4208fcaf57c44 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Tue, 6 Jul 2021 18:14:03 +0000 Subject: [PATCH] [drivers][example] Make the example compile - Rename `ksys_drv_ctl_t` to `ksys_ioctl_t` - Change path to kolibri-libc (libc.obj) git-svn-id: svn://kolibrios.org@9012 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/examples/test/Makefile | 4 ++-- drivers/examples/test/drv_test.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/examples/test/Makefile b/drivers/examples/test/Makefile index c6bc293e77..ac7e5704d5 100644 --- a/drivers/examples/test/Makefile +++ b/drivers/examples/test/Makefile @@ -1,7 +1,7 @@ -KTCC=../../../programs/develop/ktcc/trunk/bin/kos32-tcc +KTCC=kos32-tcc KPACK = kpack -KLIBC = ../../../programs/develop/libraries/kolibri-libc +KLIBC = ../../../programs/develop/ktcc/trunk/libc.obj CFLAGS = -I $(KLIBC)/include LDFLAGS = -nostdlib -L$(KLIBC)/lib $(KLIBC)/lib/crt0.o diff --git a/drivers/examples/test/drv_test.c b/drivers/examples/test/drv_test.c index 1618c3f590..42c5f5d5d3 100644 --- a/drivers/examples/test/drv_test.c +++ b/drivers/examples/test/drv_test.c @@ -43,7 +43,7 @@ int main(int argc, char** argv){ add_struct.a = 43; add_struct.b = 532; - ksys_drv_ctl_t ioctl; + ksys_ioctl_t ioctl; ioctl.func_num = DRV_ADD_FUNC; ioctl.handler = drv; ioctl.in_data_ptr = &add_struct;