* compile fix

This commit is contained in:
Stig Bakken 2000-09-09 01:15:50 +00:00
parent 8d24db9ac0
commit 7918735b11

View File

@ -1770,7 +1770,7 @@ PHPAPI int php_copy_file(char *src, char *dest)
#ifdef PHP_WIN32
if ((fd_t=V_OPEN((dest,_O_WRONLY|_O_CREAT|_O_TRUNC|_O_BINARY,_S_IREAD|_S_IWRITE)))==-1) {
#else
if ((fd_t=V_CREAT((dest,0777))==-1) {
if ((fd_t=V_CREAT(dest,0777))==-1) {
#endif
php_error(E_WARNING,"Unable to create '%s': %s", dest, strerror(errno));
close(fd_s);