Update fork.c

fixing compiling errors.