Build dtksh on more OSs
This commit is contained in:
committed by
Jon Trulson
parent
208c1e4999
commit
e8cb780125
@@ -121,9 +121,17 @@
|
||||
* workaround botched headers that assume <stdio.h>
|
||||
*/
|
||||
|
||||
#if defined(linux)
|
||||
#ifndef __FILE
|
||||
#define __FILE FILE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(CSRG_BASED)
|
||||
#ifndef FILE
|
||||
#define FILE Sfio_t
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* exit() support -- this matches shell exit codes
|
||||
|
||||
@@ -137,7 +137,9 @@
|
||||
#define _SKIP_SFSTDIO_H
|
||||
#else
|
||||
#define _SFSTDIO_H
|
||||
#if !defined(linux)
|
||||
#define FILE int
|
||||
#endif
|
||||
#if defined(__STDPP__directive) && defined(__STDPP__hide)
|
||||
#if !_std_def_calloc
|
||||
__STDPP__directive pragma pp:hide calloc
|
||||
|
||||
@@ -149,9 +149,11 @@
|
||||
#define _STDIO_INCLUDED 1
|
||||
#endif
|
||||
|
||||
#if !defined(CSRG_BASED)
|
||||
#ifndef FILE
|
||||
#define FILE Sfio_t
|
||||
#endif
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
typedef struct _sfio_ Sfile_t, Sfio_t, SFIO;
|
||||
|
||||
Reference in New Issue
Block a user