summaryrefslogtreecommitdiffstats
path: root/scilab/modules/shell
diff options
context:
space:
mode:
authorNicolas Vergnes <nicolas.vergnes@steria.cnes.fr>2010-04-02 10:25:35 +0200
committerSylvestre Ledru <sylvestre.ledru@scilab.org>2010-04-02 10:25:35 +0200
commite511cf49f7ba96bcf44b4e522fc4af994d1c6b93 (patch)
treeb0f4cd3b76dce8c955cbafca6b3dc4d562101807 /scilab/modules/shell
parentf9b286bb2798f6f7f61be792074ace5ff977c0ef (diff)
downloadscilab-e511cf49f7ba96bcf44b4e522fc4af994d1c6b93.zip
scilab-e511cf49f7ba96bcf44b4e522fc4af994d1c6b93.tar.gz
* bug 5700 fixed - Compilation under RHE4 was failing on term.h and termcap.h
inclusion. Thanks to Nicolas Vergnes for providing the fix.
Diffstat (limited to 'scilab/modules/shell')
-rw-r--r--scilab/modules/shell/src/c/others/zzledt.c8
-rw-r--r--scilab/modules/shell/src/c/scilines.c15
2 files changed, 14 insertions, 9 deletions
diff --git a/scilab/modules/shell/src/c/others/zzledt.c b/scilab/modules/shell/src/c/others/zzledt.c
index 44c41b8..6e5b381 100644
--- a/scilab/modules/shell/src/c/others/zzledt.c
+++ b/scilab/modules/shell/src/c/others/zzledt.c
@@ -32,12 +32,14 @@
32# include <ncurses.h> 32# include <ncurses.h>
33#endif 33#endif
34 34
35#ifdef HAVE_TERMCAP_H
36#include <termcap.h>
37#endif
38
39#ifndef HAVE_TERMCAP_H
35#ifdef HAVE_TERM_H 40#ifdef HAVE_TERM_H
36#include <term.h> 41#include <term.h>
37#endif 42#endif
38
39#ifdef HAVE_TERMCAP_H
40#include <termcap.h>
41#endif 43#endif
42 44
43#include "MALLOC.h" 45#include "MALLOC.h"
diff --git a/scilab/modules/shell/src/c/scilines.c b/scilab/modules/shell/src/c/scilines.c
index 1fd549e..23b02286 100644
--- a/scilab/modules/shell/src/c/scilines.c
+++ b/scilab/modules/shell/src/c/scilines.c
@@ -27,13 +27,16 @@
27# include <ncurses.h> 27# include <ncurses.h>
28# endif 28# endif
29 29
30# ifdef HAVE_TERM_H
31# include <term.h>
32# endif
33 30
34# ifdef HAVE_TERMCAP_H 31#ifdef HAVE_TERMCAP_H
35# include <termcap.h> 32#include <termcap.h>
36# endif 33#endif
34
35#ifndef HAVE_TERMCAP_H
36#ifdef HAVE_TERM_H
37#include <term.h>
38#endif
39#endif
37 40
38#endif /* !defined(_MSC_VER) */ 41#endif /* !defined(_MSC_VER) */
39 42