diff -ur voms-1.9.11.orig/src/log/log.c voms-1.9.11/src/log/log.c
--- voms-1.9.11.orig/src/log/log.c 2009-07-16 15:10:40.000000000 +0200
+++ voms-1.9.11/src/log/log.c 2009-09-07 16:02:18.597470396 +0200
@@ -175,7 +175,11 @@
if (*buffer) {
while (offset < slen) {
do {
+#ifdef PIPE_BUF
readbytes = read(fd, *buffer + offset, (slen - offset > PIPE_BUF ? PIPE_BUF : slen - offset));
+#else
+ readbytes = read(fd, *buffer + offset, (slen - offset > fpathconf(fd, _PC_PIPE_BUF) ? fpathconf(fd, _PC_PIPE_BUF) : slen - offset));
+#endif
} while (readbytes < 0 && (errno == EINTR
#ifdef ERESTART
|| errno == ERESTART