ports/devel/libtecla/files/patch-demo3.c
Renato Botelho 4d5cd28705 - Update to 1.6.1
- Respect CFLAGS
- Take maintainership

ChangeLog for this version:
  - added feature - the ability to call gl_normal_io() from
    callbacks registered by gl_watch_fd() and
    gl_inactivity_timeout(). This allows these callbacks to cleanly
    suspend line editing before either reading from the terminal, or
    writing to the terminal; and then subsequently causes the input line
    to be automatically redisplayed, and line-editing to be resumed by
    gl_get_line(), as soon as the callback returns.
  - bugfixes

PR:		ports/101929
Submitted by:	Stanislav Sedov <ssedov@mbsd.msk.ru>
2006-08-14 15:38:31 +00:00

26 lines
464 B
C

--- demo3.c.orig Sat Aug 12 19:31:16 2006
+++ demo3.c Sat Aug 12 19:31:29 2006
@@ -37,17 +37,17 @@
#include <locale.h>
#include <setjmp.h>
-#ifdef HAVE_SELECT
-#ifdef HAVE_SYS_SELECT_H
-#include <sys/select.h>
-#endif
-#endif
-
#include <unistd.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <signal.h>
+
+#ifdef HAVE_SELECT
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+#endif
#include "libtecla.h"