From: Howard Chu Date: Fri, 26 Jul 2002 13:36:04 +0000 (+0000) Subject: stdio kludge for OS/390; stdlib.h must be included after stdio.h X-Git-Tag: NO_SLAP_OP_BLOCKS~1328 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=589b0fcdd6dadaf3aeb9ac78d3e4c1ee5532c2b7;p=openldap stdio kludge for OS/390; stdlib.h must be included after stdio.h --- diff --git a/include/ac/stdlib.h b/include/ac/stdlib.h index 2e3eb5502d..c2625caa86 100644 --- a/include/ac/stdlib.h +++ b/include/ac/stdlib.h @@ -32,4 +32,11 @@ # define EXIT_FAILURE 1 #endif +#ifdef HAVE_EBCDIC +#undef putchar +#undef putc +#define putchar(c) putc((c), stdout) +#define putc(c, fp) do { char x=(c); __atoe_l(&x,1); putc(x,fp);} while(0) +#endif + #endif /* _AC_STDLIB_H */