Date: Mon, 9 Sep 96 16:28:55 BST Message-Id: <9609091528.AA05666@leopard.proteon.com> From: Neil Jarvis To: dj AT delorie DOT com Cc: djgpp-workers AT delorie DOT com In-Reply-To: <199609090348.XAA28882@delorie.com> (dj@delorie.com) Subject: Re: V2 alpha 980908 - stubify.c Reply-To: Neil DOT Jarvis AT proteon DOT com Mime-Version: 1.0 (generated by tm-edit 7.43) Content-Type: text/plain; charset=US-ASCII src/stub/stubify.c in djcrx201.zip no longer compiles under SunOS 4.1.3. The attached patch solves the problem. -- Neil Jarvis, Proteon International R&D, York, UK. (Neil DOT Jarvis AT proteon DOT com) *** stubify.c Mon Aug 12 22:38:54 1996 --- stubify-new.c Mon Sep 9 16:17:46 1996 *************** *** 6,12 **** #include #include #ifdef __DJGPP__ #include - #include #include #include --- 6,12 ---- #include #include + #include #ifdef __DJGPP__ #include #include #include *************** *** 221,225 **** --- 221,229 ---- { unlink(ofilename); + #ifdef __DJGPP__ if (_rename(ifilename, ofilename)) + #else + if (rename(ifilename, ofilename)) + #endif { printf("rename of %s to %s failed.\n", ifilename, ofilename);