[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
This commit is contained in:
Magomed Kostoev (mkostoevr) 2021-07-06 18:14:03 +00:00
parent 861708b8e9
commit e1d4f4b8d9
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;