delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/09/09/11:34:30

Date: Mon, 9 Sep 96 16:28:55 BST
Message-Id: <9609091528.AA05666@leopard.proteon.com>
From: Neil Jarvis <Neil DOT Jarvis AT proteon DOT com>
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)

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019