]> git.sur5r.net Git - openldap/commitdiff
ITS#5007: Wrap code using MSG_WAITALL in #ifdef MSG_WAITALL.
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 9 Jun 2007 23:43:02 +0000 (23:43 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 9 Jun 2007 23:43:02 +0000 (23:43 +0000)
libraries/liblutil/getpeereid.c

index b96d8c808f25ab9055fb9b418a45a2f596e0038b..a128423036d2f1ae495bce773e56b3334503c60b 100644 (file)
@@ -85,7 +85,7 @@ int lutil_getpeereid( int s, uid_t *euid, gid_t *egid
                *egid = peercred.cr_gid;
                return 0;
        }
-#elif defined( LDAP_PF_LOCAL_SENDMSG )
+#elif defined( LDAP_PF_LOCAL_SENDMSG ) && defined( MSG_WAITALL )
        int err, fd;
        struct iovec iov;
        struct msghdr msg = {0};