Fixed code: /* Hopefully... Wrapping WILL %#$% it up... */ #include<sys/io.h> #include<stdio.h> #include <unistd.h> int main(int argc, char *argv[]) { ioperm(0,0x3ff,1); /* Dangerous, overkill, allows access to all ports */ /* setuid(<your uid>); /* Drops permissions - have never used it, check docs... Environment should probably be set up as well */ execlp("wine","wine","application.exe",NULL); /* My unix C coding needs practice, so this might just destroy your PC, read docs... */ printf("Failed to run Wine\n"); return 1; /* Should never run */ }