]> git.sur5r.net Git - openldap/commitdiff
*** empty log message ***
authorKurt Zeilenga <kurt@openldap.org>
Mon, 28 Jun 1999 04:05:53 +0000 (04:05 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 28 Jun 1999 04:05:53 +0000 (04:05 +0000)
libraries/liblber/io.c

index a29cdf54d53df22d19871ef70924741d15a6490c..73c8c57ad5495a8879ee2cdbbd7662be21da21a7 100644 (file)
@@ -236,7 +236,7 @@ ber_flush( Sockbuf *sb, BerElement *ber, int freeit )
                        ber->ber_rwptr, towrite );
        }
 
-#if !defined(MACOS) && !defined(DOS)
+#if HAVE_WRITE || (!defined(MACOS) && !(defined(DOS) && !defined(_WIN32)))
        if ( sb->sb_options & (LBER_TO_FILE | LBER_TO_FILE_ONLY) ) {
                rc = write( sb->sb_fd, ber->ber_rwptr, towrite );
                if ( sb->sb_options & LBER_TO_FILE_ONLY ) {