From d41d87be27eaacc45666e93f0ed3f22370049a5a Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Tue, 27 Mar 2018 01:51:58 +0100 Subject: [PATCH] dtksh: Linux modern glibc compile HACK prevent system wide definition of __FILE that we define to Sfio_t --- cde/programs/dtksh/ksh93/src/lib/libast/include/sfio.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cde/programs/dtksh/ksh93/src/lib/libast/include/sfio.h b/cde/programs/dtksh/ksh93/src/lib/libast/include/sfio.h index 53f36e9f..33e9be5a 100644 --- a/cde/programs/dtksh/ksh93/src/lib/libast/include/sfio.h +++ b/cde/programs/dtksh/ksh93/src/lib/libast/include/sfio.h @@ -46,6 +46,12 @@ #ifndef _SFIO_H #define _SFIO_H 1 +#if defined(linux) +/* HACK On linux prevent inclusion of __FILE.h that contains a conflicting + definition of __FILE that we define later */ +# define ____FILE_defined 1 +#endif /* linux */ + /* Public header file for the safe fast io package. ** ** Written by Kiem-Phong Vo, kpv@research.att.com. -- 2.25.1