dtksh: HACKY fix for compilation on later linux C library where FILE definition has moved

This commit is contained in:
Peter Howkins
2018-03-23 01:51:39 +00:00
parent b1c3729e88
commit 9d69ea3d97
12 changed files with 61 additions and 8 deletions

View File

@@ -108,6 +108,12 @@
#include "national.h"
#if _hdr_wchar && _lib_wctype && _lib_iswctype
/* on linux wchar.h can include FILE without stdio.h which clashes with sfio_t */
#if defined(linux)
#ifndef __FILE_defined
#define __FILE_defined 1
#endif
#endif
# include <wchar.h>
# undef isalpha
# define isalpha(x) iswalpha(x)

View File

@@ -94,6 +94,12 @@
#endif
#include "defs.h"
#include <fcin.h>
/* on linux pwd.h can include FILE without stdio.h which clashes with sfio_t */
#if defined(linux)
#ifndef __FILE_defined
#define __FILE_defined 1
#endif
#endif
#include <pwd.h>
#include "name.h"
#include "variables.h"