summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-11-05 18:24:44 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-11-05 18:24:44 (GMT)
commitb22e2de8e5e9c8ccb27ed74c5b6b1cd93b9b8a46 (patch)
treed4b71ef78725eb9be8262059746ffdbab7efa637 /Source/CursesDialog
parent9190e57e3d2658475e4a5d2d85d12387563130bf (diff)
downloadCMake-b22e2de8e5e9c8ccb27ed74c5b6b1cd93b9b8a46.zip
CMake-b22e2de8e5e9c8ccb27ed74c5b6b1cd93b9b8a46.tar.gz
CMake-b22e2de8e5e9c8ccb27ed74c5b6b1cd93b9b8a46.tar.bz2
HPUX support.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/CMakeLists.txt5
-rw-r--r--Source/CursesDialog/cmCursesForm.h3
-rw-r--r--Source/CursesDialog/cmCursesLabelWidget.h3
-rw-r--r--Source/CursesDialog/cmCursesMainForm.h3
-rw-r--r--Source/CursesDialog/cmCursesStandardIncludes.h7
-rw-r--r--Source/CursesDialog/cmCursesWidget.h3
-rw-r--r--Source/CursesDialog/form/frm_driver.c3
-rw-r--r--Source/CursesDialog/form/frm_req_name.c3
8 files changed, 22 insertions, 8 deletions
diff --git a/Source/CursesDialog/CMakeLists.txt b/Source/CursesDialog/CMakeLists.txt
index d0dad7c..336b64f 100644
--- a/Source/CursesDialog/CMakeLists.txt
+++ b/Source/CursesDialog/CMakeLists.txt
@@ -17,6 +17,11 @@ SOURCE_FILES( CURSES_SRCS
INCLUDE_DIRECTORIES(${CURSES_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source/CursesDialog/form/)
LINK_LIBRARIES(${CURSES_LIBRARY})
+
+IF(CURSES_EXTRA_LIBRARY)
+ LINK_LIBRARIES(${CURSES_EXTRA_LIBRARY})
+ENDIF(CURSES_EXTRA_LIBRARY)
+
LINK_LIBRARIES(cmForm)
ADD_EXECUTABLE(ccurses CURSES_SRCS) \ No newline at end of file
diff --git a/Source/CursesDialog/cmCursesForm.h b/Source/CursesDialog/cmCursesForm.h
index 4924f2e..bf6d065 100644
--- a/Source/CursesDialog/cmCursesForm.h
+++ b/Source/CursesDialog/cmCursesForm.h
@@ -1,8 +1,7 @@
#ifndef __cmCursesForm_h
#define __cmCursesForm_h
-#include <curses.h>
-#include <form.h>
+#include "cmCursesStandardIncludes.h"
class cmCursesForm
{
diff --git a/Source/CursesDialog/cmCursesLabelWidget.h b/Source/CursesDialog/cmCursesLabelWidget.h
index 6d3a7cf..93442d2 100644
--- a/Source/CursesDialog/cmCursesLabelWidget.h
+++ b/Source/CursesDialog/cmCursesLabelWidget.h
@@ -2,8 +2,7 @@
#define __cmCursesLabelWidget_h
#include "cmCursesWidget.h"
-#include <curses.h>
-#include <form.h>
+#include "cmCursesStandardIncludes.h"
class cmCursesLabelWidget : public cmCursesWidget
diff --git a/Source/CursesDialog/cmCursesMainForm.h b/Source/CursesDialog/cmCursesMainForm.h
index f3e7917..5102708 100644
--- a/Source/CursesDialog/cmCursesMainForm.h
+++ b/Source/CursesDialog/cmCursesMainForm.h
@@ -3,8 +3,7 @@
#include "../cmStandardIncludes.h"
#include "cmCursesForm.h"
-#include <curses.h>
-#include <form.h>
+#include "cmCursesStandardIncludes.h"
class cmCursesCacheEntryComposite;
diff --git a/Source/CursesDialog/cmCursesStandardIncludes.h b/Source/CursesDialog/cmCursesStandardIncludes.h
new file mode 100644
index 0000000..1cb009b
--- /dev/null
+++ b/Source/CursesDialog/cmCursesStandardIncludes.h
@@ -0,0 +1,7 @@
+#ifdef __hpux
+ #define _XOPEN_SOURCE_EXTENDED
+ #define _BOOL_DEFINED
+#endif /* __hpux */
+
+#include <curses.h>
+#include <form.h>
diff --git a/Source/CursesDialog/cmCursesWidget.h b/Source/CursesDialog/cmCursesWidget.h
index 9d8ce39..a516bca 100644
--- a/Source/CursesDialog/cmCursesWidget.h
+++ b/Source/CursesDialog/cmCursesWidget.h
@@ -2,8 +2,7 @@
#define __cmCursesWidget_h
#include "../cmCacheManager.h"
-#include <curses.h>
-#include <form.h>
+#include "cmCursesStandardIncludes.h"
class cmCursesWidget
{
diff --git a/Source/CursesDialog/form/frm_driver.c b/Source/CursesDialog/form/frm_driver.c
index 6ea5dab..03e02c2 100644
--- a/Source/CursesDialog/form/frm_driver.c
+++ b/Source/CursesDialog/form/frm_driver.c
@@ -29,6 +29,9 @@
/****************************************************************************
* Author: Juergen Pfeifer <juergen.pfeifer@gmx.net> 1995,1997 *
****************************************************************************/
+#ifdef __hpux
+ #define _XOPEN_SOURCE_EXTENDED
+#endif /* __hpux */
#include "form.priv.h"
MODULE_ID("$Id$")
diff --git a/Source/CursesDialog/form/frm_req_name.c b/Source/CursesDialog/form/frm_req_name.c
index e9cd426..30b3aca 100644
--- a/Source/CursesDialog/form/frm_req_name.c
+++ b/Source/CursesDialog/form/frm_req_name.c
@@ -35,6 +35,9 @@
* Routines to handle external names of menu requests *
***************************************************************************/
+#ifdef __hpux
+ #define _XOPEN_SOURCE_EXTENDED
+#endif /* __hpux */
#include "form.priv.h"
MODULE_ID("$Id$")