You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Garey Smiley <ga...@main.slink.com> on 1996/06/16 16:20:47 UTC

Another mod_proxy.c OS/2 fix.

Here's an undated patch for mod_proxy.c to fix OS/2 compatability.

*** mod_proxy.c.orig	Sat Jun 08 16:21:28 1996
--- mod_proxy.c	Sun Jun 16 10:18:24 1996
***************
*** 2081,2092 ****
--- 2081,2099 ----
              *p='/';
              ++p;
              }
+ #ifdef __EMX__
+         /* Under OS/2 use rename. */            
+         if (rename(c->tempfile, c->filename) == -1)
+             log_uerror("rename", c->filename, "proxy: error renaming
cache file", s);
+         }
+ #else            
          if (link(c->tempfile, c->filename) == -1)
              log_uerror("link", c->filename, "proxy: error linking
cache file", s);
          }
  
      if (unlink(c->tempfile) == -1)
          log_uerror("unlink", c->tempfile, "proxy: error deleting temp
file",s);
+ #endif            
  
      garbage_coll(c->req);
  }



Garey Smiley
SoftLink Services
garey@slink.com
http://www.slink.com/
(216)848-1312 FAX/Data(216)699-4474