Fix for HPUX 10.20 and Gnome-Utils




On gnome utils from CVS yesterday (12/14 14:00 GMT) It would not build on
HPUX 10.20 due to some "funkiness" in HPUX curses.h.  I modified
gdialog/dialog.h to get it working:

#ifdef ultrix
#  include <cursesX.h>
#else
#  if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
#    include <ncurses.h>
#  else
#  ifndef _XOPEN_SOURCE_EXTENDED
#  define _XOPEN_SOURCE_EXTENDED
#  endif
#  ifndef _XOPEN_SOURCE_EXTENDED
#  define _ACS_COMPAT_CODE
#  endif
#    include <curses.h>
#  undef _XOPEN_SOURCE_EXTENDED
#  undef _ACS_COMPAT_CODE
#endif
#endif

With the fix being the _XOPEN_SOURCE_EXTENDED and _ACS_COMPAT_CODE
def/undefs.  Also, I had to add -lcurses to the LIBS = line in the gdialog
Makefile...seems the configure should have taken care of that.

	-Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]