The following program should compile w/o any warnings
with -Wall. mingw 1.1 gives an "implicit declaration
of getpid()" warning. Including process.h fixes this,
but the first two listed header files should be
sufficient (see getpid() man page).
int main (void)
printf("pid is %d\n", getpid());