Mail Archives: djgpp-workers/1996/09/09/11:34:30
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 <sys/stat.h>
#include <string.h>
#ifdef __DJGPP__
#include <io.h>
- #include <unistd.h>
#include <libc/dosio.h>
#include <go32.h>
--- 6,12 ----
#include <sys/stat.h>
#include <string.h>
+ #include <unistd.h>
#ifdef __DJGPP__
#include <io.h>
#include <libc/dosio.h>
#include <go32.h>
***************
*** 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);
- Raw text -