]> git.sur5r.net Git - openldap/commitdiff
Fix fake error generation.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 20 Oct 1998 18:38:59 +0000 (18:38 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 20 Oct 1998 18:38:59 +0000 (18:38 +0000)
libraries/liblber/io.c

index cbf1837a91c3e1c3eeb1fc847c875294a4ed390c..bbe6c82dd1aa28c90dfd410b894704099e14eb9f 100644 (file)
@@ -307,7 +307,7 @@ ber_flush( Sockbuf *sb, BerElement *ber, int freeit )
 
                        /* fake error if write was not atomic */
                        if (rc < towrite) {
-#if !defined(MACOS) && !defined(DOS)
+#ifdef EMSGSIZE
                            errno = EMSGSIZE;
 #endif
                            return( -1 );