forked from KolibriOS/kolibrios
[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:
parent
861708b8e9
commit
e1d4f4b8d9
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user