From c2a72f07760f971f357bfd9cb2b0260a5c5161aa Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 3 Aug 2019 23:12:20 +0200 Subject: Fix Solaris build with non-c99 compiler (gcc), fixup fileno(). Solaris's headers complain if _XOPEN_SOURCE or thereabouts are defined, but the compiler in use isn't the relevant XPG c99. --- rcfile_l.l | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rcfile_l.l b/rcfile_l.l index e27545e4..9590a2ff 100644 --- a/rcfile_l.l +++ b/rcfile_l.l @@ -1,6 +1,5 @@ %top{ -/* make fileno() known */ -#define _XOPEN_SOURCE 600 +#include "config.h" } %{ @@ -12,7 +11,6 @@ */ #include -#include "config.h" #include "fetchmail.h" #include "xmalloc.h" #include "rcfile_y.h" -- cgit v1.2.3