Message-ID: From: "Andris Pavenis" To: djgpp-workers AT delorie DOT com Date: Thu, 15 Apr 1999 11:31:36 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Some small patches to current CVS version of DJGPP X-mailer: Pegasus Mail for Win32 (v3.02b14) Reply-To: djgpp-workers AT delorie DOT com Hi! Here are 3 small patches to current CVS version of DJGPP I had to apply to get it compiled with egcs 2.93.18 19990412 (latest development snapshot of egcs) I built before for DJGPP. None of them should break anything with other versions. Here is some notes about these things: setjmp.h: I added name to anonymous struct similary as it is done in glibc-2.1 (I didn't even copy the name there) as I got compile time error where jmp_buf were used as parameter for external procedure. I have glibc-2.1 as C library in Linux. ctime.c: gcc did not like when 'static void foo(void); ' were followed by simply 'void foo(void) {.. '. I think adding static does not cause any harm mntent.c: again annoying "'foo' may be used before initialisation' style warning. I simply assigned 0 to avoid warning Andris *** include/setjmp.h~1 Sat Feb 20 20:54:46 1999 --- include/setjmp.h Wed Apr 14 12:30:44 1999 *************** *** 8,14 **** #ifndef __dj_ENFORCE_ANSI_FREESTANDING ! typedef struct { unsigned long __eax, __ebx, __ecx, __edx, __esi; unsigned long __edi, __ebp, __esp, __eip, __eflags; unsigned short __cs, __ds, __es, __fs, __gs, __ss; --- 8,14 ---- #ifndef __dj_ENFORCE_ANSI_FREESTANDING ! typedef struct __tag_jmp_buf__ { unsigned long __eax, __ebx, __ecx, __edx, __esi; unsigned long __edi, __ebp, __esp, __eip, __eflags; unsigned short __cs, __ds, __es, __fs, __gs, __ss; *** src/libc/ansi/time/ctime.c~1 Mon Mar 22 10:33:58 1999 --- src/libc/ansi/time/ctime.c Wed Apr 14 12:09:06 1999 *************** *** 974,980 **** settzname(); } ! void tzsetwall(void) { if (lcl_is_set == -1) --- 974,980 ---- settzname(); } ! static void tzsetwall(void) { if (lcl_is_set == -1) *** src/libc/compat/mntent/mntent.c~1 Mon Mar 22 10:34:02 1999 --- src/libc/compat/mntent/mntent.c Wed Apr 14 12:12:06 1999 *************** *** 612,618 **** if (drive_number <= 2) { unsigned char buf[512]; ! int bios_status, count = 0; int drive_a_remapped = drive_a_mapping == 2; /* When biosdisk is called, Windows 9X pops up the ugly --- 612,618 ---- if (drive_number <= 2) { unsigned char buf[512]; ! int bios_status=0, count = 0; int drive_a_remapped = drive_a_mapping == 2; /* When biosdisk is called, Windows 9X pops up the ugly