Subject: [PATCH] Fix clex app. to build under cygwin
From: shahin razeghian jahromi <[email-masked]>
To: [email-masked]
Cc: [email-masked], [email-masked]
Date: Wed, 12 Feb 2003 16:12:06 -0800

Hi,

  I ran into a compile problem while building clex under cygwin.
(Clex is a curses-based file manager; see http://www.clex.sk ). 
A patch to fix it is attached, along with a little shell script
that demonstrates how to build clex under Cygwin.

Shahin Jahromi
University of Southern California
--- clex-3.1.7/configure.in.old	2003-02-12 12:09:34.000000000 -0800
+++ clex-3.1.7/configure.in	2003-02-12 12:25:56.000000000 -0800
@@ -12,7 +12,7 @@
 AC_HEADER_MAJOR
 AC_HEADER_SYS_WAIT
 AC_HEADER_TIME
-AC_CHECK_HEADERS(ncurses.h fcntl.h unistd.h)
+AC_CHECK_HEADERS(ncurses.h fcntl.h unistd.h term.h ncurses/term.h)
 AC_DECL_SYS_SIGLIST
 AC_C_CONST
 AC_TYPE_UID_T
--- clex-3.1.7/src/inout.c.old	2003-02-12 12:10:51.000000000 -0800
+++ clex-3.1.7/src/inout.c	2003-02-12 12:12:26.000000000 -0800
@@ -24,7 +24,11 @@
 #else
 # include <curses.h>
 #endif
+#ifdef HAVE_TERM_H
 #include <term.h>		/* enter_bold_mode */
+#elif defined (HAVE_NCURSES_TERM_H)
+#include <ncurses/term.h>
+#endif
 
 #include "clex.h"
 #include "inout.h"
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/