aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/fd_output_stream.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/fd_output_stream.hh')
-rw-r--r--paludis/util/fd_output_stream.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/util/fd_output_stream.hh b/paludis/util/fd_output_stream.hh
index 15d0255..ab818c4 100644
--- a/paludis/util/fd_output_stream.hh
+++ b/paludis/util/fd_output_stream.hh
@@ -55,11 +55,11 @@ namespace paludis
virtual int_type
overflow(int_type c)
{
- if (c != EOF)
+ if (c != traits_type::eof())
{
char z = c;
if (1 != write(fd, &z, 1))
- return EOF;
+ return traits_type::eof();
}
return c;
}