X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=blobdiff_plain;f=src%2Fcoloredstderr.c;h=22c37675eaaf0fa660480ccb329549ce1e913c3b;hp=85b2b941b88f9d76c58a0f14eb0dd4181dc3a3c9;hb=f3c734eb7d1759d67e64614a6285865e6edac0bf;hpb=b0c02291be915423e396e47baad24543df101879 diff --git a/src/coloredstderr.c b/src/coloredstderr.c index 85b2b94..22c3767 100644 --- a/src/coloredstderr.c +++ b/src/coloredstderr.c @@ -275,7 +275,7 @@ HOOK_FILE1(int, putchar_unlocked, stdout, * part. As writes to stderr are never buffered, __overflow() is always called * and everything works fine. This is only a problem if stdout is dupped to * stderr (which shouldn't be the case too often). */ -#ifdef HAVE_STRUCT__IO_FILE__FILENO +#if defined(HAVE_STRUCT__IO_FILE__FILENO) && defined(HAVE___OVERFLOW) /* _IO_FILE is glibc's representation of FILE. */ HOOK_FILE2(int, __overflow, f, _IO_FILE *, f, int, ch) #endif