dtksh: HACKY fix for compilation on later linux C library where FILE definition has moved
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user