helly           Tue Dec 16 16:41:57 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/dba    dba_flatfile.c 
  Log:
  MFH: Fix winbuild
  
Index: php-src/ext/dba/dba_flatfile.c
diff -u php-src/ext/dba/dba_flatfile.c:1.8.2.4 php-src/ext/dba/dba_flatfile.c:1.8.2.5
--- php-src/ext/dba/dba_flatfile.c:1.8.2.4      Sun Dec 14 17:20:04 2003
+++ php-src/ext/dba/dba_flatfile.c      Tue Dec 16 16:41:57 2003
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: dba_flatfile.c,v 1.8.2.4 2003/12/14 22:20:04 helly Exp $ */
+/* $Id: dba_flatfile.c,v 1.8.2.5 2003/12/16 21:41:57 helly Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -48,8 +48,13 @@
                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not cast 
stream");
                        return FAILURE;
                }
+#ifdef F_SETFL
+               /* Needed becasue some systems do not allow to write to the original 
+                * file contents with O_APPEND being set.
+                */
                flags = fcntl(fd, F_SETFL);
                fcntl(fd, F_SETFL, flags & ~O_APPEND);
+#endif
        }
 
        info->dbf = pemalloc(sizeof(flatfile), info->flags&DBA_PERSISTENT);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to