Browse Source

Doh! Miles Bader noticed a couple of spots where I forgot
to mark __stdio_flush_buffers with weak_function. Oops!

Eric Andersen 24 years ago
parent
commit
c6b92ee07f
2 changed files with 2 additions and 4 deletions
  1. 1 1
      libc/stdlib/abort.c
  2. 1 3
      libc/stdlib/atexit.c

+ 1 - 1
libc/stdlib/abort.c

@@ -46,7 +46,7 @@ Cambridge, MA 02139, USA.  */
 #define ABORT_INSTRUCTION
 #endif
 
-extern void __stdio_flush_buffers(void);
+extern void weak_function __stdio_flush_buffers(void);
 extern void _exit __P((int __status)) __attribute__ ((__noreturn__));
 static int been_there_done_that = 0;
 

+ 1 - 3
libc/stdlib/atexit.c

@@ -44,8 +44,6 @@ typedef enum {
 	ef_on_exit
 } ef_type; /* exit function types */
 
-extern void __stdio_flush_buffers(void);
-
 /* this is in the L_exit object */
 extern void (*__exit_cleanup) (int);
 
@@ -143,7 +141,7 @@ void __exit_handler(int status)
 #endif
 
 #ifdef L_exit
-extern void __stdio_flush_buffers(void);
+extern void weak_function __stdio_flush_buffers(void);
 void (*__exit_cleanup) (int) = 0;
 
 /*