As Peter said, because gcc is less picky. It assumes that undefined functions return ints, and that's true of fork(). If you give gcc the -Wall flag, it'll complain about that.
_________________________
Bitt Faulk