alarm() and getlogin() are defined in libmingwex.a, so they should have a prototype somewhere in the headers, either in unistd.h or in one of the headers included by unistd.h (maybe io.h?)
The following warnings appear otherwise while compiling gcc:
../../../gcc/libgfortran/intrinsics/getlog.c: In function '_gfortran_getlog':
../../../gcc/libgfortran/intrinsics/getlog.c:90: warning: implicit declaration of function 'getlogin'
../../../gcc/libgfortran/intrinsics/getlog.c:90: warning: assignment makes pointer from integer without a cast
../../../gcc/libgfortran/intrinsics/signal.c: In function 'alarm_sub_i4':
../../../gcc/libgfortran/intrinsics/signal.c:149: warning: implicit declaration of function 'alarm'
Log in to post a comment.