> grep -n FILE build/bash-4.0/externs.h
> 200:extern int fpurge __P((FILE *stream));
> 264:extern int sh_setlinebuf __P((FILE *));
> 
> bash-4.0/externs.h
> 
> needs
> 
> #include <stdio.h>

Try the attached patch.  Including stdio.h in externs.h is the wrong fix.

Chet

*** ../bash-4.0-patched/externs.h       2009-01-18 18:29:29.000000000 -0500
--- externs.h   2009-06-02 09:05:40.000000000 -0400
***************
*** 193,196 ****
--- 193,198 ----
  
  /* Declarations for functions defined in lib/sh/fpurge.c */
+ 
+ #if defined NEED_FPURGE_DECL
  #if !HAVE_DECL_FPURGE
  
***************
*** 201,205 ****
  
  #endif /* HAVE_DECL_FPURGE */
! 
  
  /* Declarations for functions defined in lib/sh/getcwd.c */
--- 203,207 ----
  
  #endif /* HAVE_DECL_FPURGE */
! #endif /* NEED_FPURGE_DECL */
  
  /* Declarations for functions defined in lib/sh/getcwd.c */

``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    c...@case.edu    http://tiswww.tis.case.edu/~chet/

Reply via email to