diff -ur tpctl-4.4/tpctlir/tpctlir.c tpctl-4.4/tpctlir/tpctlir.c --- tpctl-4.4/tpctlir/tpctlir.c 2002-03-01 14:46:14.000000000 +0100 +++ tpctl-4.4/tpctlir/tpctlir.c 2003-10-04 18:00:40.000000000 +0200 @@ -1,6 +1,7 @@ #include #include #include +#include /* * enable/disable IR on IBM ThinkPads with @@ -29,7 +30,7 @@ return 2; } - cli(); + asm("cli"); val94 = inb(0x94); /* POS mask register */ outb(0xfE, 0x94); /* mask bit (0) for IR; changes enabled */ @@ -44,7 +45,7 @@ outb(val94, 0x94); /* restore POS mask to prevent changing */ outb(val94, 0x47); /* pause */ - sti(); + asm("sti"); return 0; }