summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv2/common/isc/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libresolv2/common/isc/logging.c')
-rw-r--r--usr/src/lib/libresolv2/common/isc/logging.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/src/lib/libresolv2/common/isc/logging.c b/usr/src/lib/libresolv2/common/isc/logging.c
index 48ce0859c9..f279ea525d 100644
--- a/usr/src/lib/libresolv2/common/isc/logging.c
+++ b/usr/src/lib/libresolv2/common/isc/logging.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -158,7 +158,11 @@ log_open_stream(log_channel chan) {
chan->flags |= LOG_CHANNEL_BROKEN;
return (NULL);
}
+#ifdef SUNW_AVOIDSTDIO_FDLIMIT
+ stream = fdopen(fd, "aF");
+#else
stream = fdopen(fd, "a");
+#endif
if (stream == NULL) {
syslog(LOG_ERR, "log_open_stream: fdopen() failed");
chan->flags |= LOG_CHANNEL_BROKEN;