Build dtksh on more OSs

This commit is contained in:
Ulrich Wilkens
2013-03-26 04:08:13 +01:00
committed by Jon Trulson
parent 208c1e4999
commit e8cb780125
13 changed files with 40 additions and 12 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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;