Revert "Sync readline/ to version 7.0 alpha"
[deliverable/binutils-gdb.git] / readline / examples / excallback.c
index 4206acfca4a518c8081d1e5389e2fdcb1b51bb8c..385492b1b702330ca3fbd5335674b9f60651f3ae 100644 (file)
@@ -40,14 +40,13 @@ Copyright (C) 1999 Jeff Solomon
 #include <config.h>
 #endif
 
+#include <stdio.h>
 #include <sys/types.h>
 
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#include <stdlib.h>
 
-#include <stdio.h>
 #include <termios.h>   /* xxx - should make this more general */
 
 #ifdef READLINE_LIBRARY
@@ -56,10 +55,6 @@ Copyright (C) 1999 Jeff Solomon
 #  include <readline/readline.h>
 #endif
 
-#ifndef STDIN_FILENO
-#  define STDIN_FILENO 0
-#endif
-
 /* This little examples demonstrates the alternate interface to using readline.
  * In the alternate interface, the user maintains control over program flow and
  * only calls readline when STDIN is readable. Using the alternate interface,
This page took 0.024218 seconds and 4 git commands to generate.