aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2019-08-03 23:12:20 +0200
committerMatthias Andree <matthias.andree@gmx.de>2019-08-05 13:08:43 +0200
commitc2a72f07760f971f357bfd9cb2b0260a5c5161aa (patch)
tree5831cc65a426c84a6b3a35f6423fe785f2ffe44f
parent604913239997dc85412f55d6f5de24507db1497a (diff)
downloadfetchmail-c2a72f07760f971f357bfd9cb2b0260a5c5161aa.tar.gz
fetchmail-c2a72f07760f971f357bfd9cb2b0260a5c5161aa.tar.bz2
fetchmail-c2a72f07760f971f357bfd9cb2b0260a5c5161aa.zip
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.
-rw-r--r--rcfile_l.l4
1 files changed, 1 insertions, 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 <string.h>
-#include "config.h"
#include "fetchmail.h"
#include "xmalloc.h"
#include "rcfile_y.h"