summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/form/form.h
diff options
context:
space:
mode:
authorÅdne Hovda <ahovda@openit.com>2014-11-18 10:40:05 (GMT)
committerBrad King <brad.king@kitware.com>2014-11-18 15:03:35 (GMT)
commit7a68729223c05d779188de89066de414d131dbcb (patch)
tree518667eb9e3f5c6a7a25ecde9f00922af764276a /Source/CursesDialog/form/form.h
parent44f02b42fb3b2278fdf8e9bd450c3f01573d1e3e (diff)
downloadCMake-7a68729223c05d779188de89066de414d131dbcb.zip
CMake-7a68729223c05d779188de89066de414d131dbcb.tar.gz
CMake-7a68729223c05d779188de89066de414d131dbcb.tar.bz2
ccmake: Cleanup and simplify conditional blocks for HP-UX
Diffstat (limited to 'Source/CursesDialog/form/form.h')
-rw-r--r--Source/CursesDialog/form/form.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CursesDialog/form/form.h b/Source/CursesDialog/form/form.h
index 94f05af..1219cb5 100644
--- a/Source/CursesDialog/form/form.h
+++ b/Source/CursesDialog/form/form.h
@@ -47,7 +47,17 @@
# elif defined(CURSES_HAVE_NCURSES_CURSES_H)
# include <ncurses/curses.h>
# else
+# if defined(__hpux)
+# if defined(_XOPEN_SOURCE_EXTENDED)
+# define HAVE__XOPEN_SOURCE_EXTENDED
+# else
+# define _XOPEN_SOURCE_EXTENDED
+# endif
+# endif
# include <curses.h>
+# if defined(__hpux) && !defined(HAVE__XOPEN_SOURCE_EXTENDED)
+# undef _XOPEN_SOURCE_EXTENDED
+# endif
# endif
#include <eti.h>