aboutsummaryrefslogtreecommitdiff
path: root/contrib/dialog
diff options
context:
space:
mode:
authorJaakko Heinonen <jh@FreeBSD.org>2011-06-19 08:53:16 +0000
committerJaakko Heinonen <jh@FreeBSD.org>2011-06-19 08:53:16 +0000
commit43764a7ffa9ad6eba3275410bc2397d3d398f75f (patch)
tree38a71fb8cabcb500b9eea95a0fb24892e3f95975 /contrib/dialog
parent842014b1273341f64ea71d7251051cecc1d4f067 (diff)
downloadsrc-43764a7ffa9ad6eba3275410bc2397d3d398f75f.tar.gz
src-43764a7ffa9ad6eba3275410bc2397d3d398f75f.zip
Don't #undef curses ERR in dialog.h. Otherwise, the macro will be
unavailable if curses.h is included before dialog.h. PR: bin/156601 Obtained from: Thomas E. Dickey (upstream maintainer) Discussed with: nwhitehorn
Notes
Notes: svn path=/head/; revision=223289
Diffstat (limited to 'contrib/dialog')
-rw-r--r--contrib/dialog/dialog.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/dialog/dialog.h b/contrib/dialog/dialog.h
index e7265734094e..ceeba45df4a5 100644
--- a/contrib/dialog/dialog.h
+++ b/contrib/dialog/dialog.h
@@ -1,5 +1,5 @@
/*
- * $Id: dialog.h,v 1.223 2011/03/02 10:04:09 tom Exp $
+ * $Id: dialog.h,v 1.224 2011/06/13 14:29:42 tom Exp $
*
* dialog.h -- common declarations for all dialog modules
*
@@ -44,7 +44,10 @@
#include <signal.h> /* fork() etc. */
#include <math.h> /* sqrt() */
-#undef ERR /* header conflict with Solaris xpg4 */
+/* header conflict with Solaris xpg4 versus <sys/regset.h> */
+#if defined(ERR) && (ERR == 13)
+#undef ERR
+#endif
#if defined(HAVE_NCURSESW_NCURSES_H)
#include <ncursesw/ncurses.h>