kevin@kosman.UUCP (Kevin O'Gorman) (11/29/89)
I just updated my Perl to patchlevel 6. I ran into a bug I didn't see when it was patchlevel 1. In compiling perl.c, my compiler (gcc 1.35) choked on a redefinition of struct tm in the include file time.h. I tracked it down to some convoluted #ifdef-ing in perl.h. I fixed it by removing a line in perl.h. I think I have reconstructed it correctly below, but in any event the only change was to delete the flagged line (which I may not have restored exactly -- if so, you can easily tell). Everything else worked as expected: four files had to be compiled by hand because my 3b1 doesn't have enough virtual memory for the gcc optimizer in full cry, but 'make test' is now completely clean. - #if defined(TMINSYS) || defined(I_SYSTIME) - #include <sys/time.h> - #ifdef I_TIMETOO - #include <time.h> - #endif - #else - #include <time.h> - #ifdef I_SYSTIMETOO - #include <time.h> <-- this is the line I deleted. - #endif - #endif - - #include <sys/times.h>