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/14 03:53:23 UTC

mod_proxy OS/2 fix.

Could someone please commit this. OS/2 dosen't have link().

*** mod_proxy.c.orig	Sat Jun 08 16:21:28 1996
--- mod_proxy.c	Thu Jun 13 21:50:26 1996
***************
*** 2081,2088 ****
--- 2081,2094 ----
              *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);
+ #endif            
          }
  
      if (unlink(c->tempfile) == -1)


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