mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix incompatibilities with the musl C library (#156)
This makes ksh build on Alpine Linux which uses this C library. src/lib/libast/include/ast_std.h: - Define __DEFINED_FILE to hide FILE internals from the Korn shell's SFIO. src/lib/libast/features/wchar: - Include wchar.h before redefining iswalpha() to avoid mangling the C library's declaration. src/lib/libast/features/lib: - Test whether off64_t and off_t are actually distinct types before using the former. Fixes: #3
This commit is contained in:
parent
699965fe41
commit
e245856fd2
3 changed files with 20 additions and 5 deletions
|
|
@ -93,6 +93,9 @@ struct _sfio_s;
|
|||
#ifndef __FILE_defined
|
||||
#define __FILE_defined 1
|
||||
#endif
|
||||
#ifndef __DEFINED_FILE
|
||||
#define __DEFINED_FILE 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* locale stuff */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue