P
Pacman
A note to anyone wanting to get Curses to compile under OS X 10.2.6.
I had to make some changes to the standard c-config.h hints file, the
old 'darwin' one does not work due to conflicts between some perl
definitions and curses.h definitions namely:
instr
bool
FIELD
here's the c-config.h file I altered:
/* Hint file for the darwin platform.
*
* If this configuration doesn't work, look at the file "c-none.h"
* for how to set the configuration options.
*/
#include <curses.h>
#ifdef C_PANELSUPPORT
#include <panel.h>
#endif
#ifdef C_MENUSUPPORT
#include <menu.h>
#endif
/* OK this is hackish, but it solves the problem. */
#ifdef C_FORMSUPPORT
#include "/usr/include/form.h"
#endif
/* FIX: OS X longname only takes 0 args now */
#define C_LONGNAME
#define C_LONG0ARGS
#undef C_LONG2ARGS
/* FIX: OS X touchline is now 3 args */
#define C_TOUCHLINE
#define C_TOUCH3ARGS
#undef C_TOUCH4ARGS
/* These both get defined in curses.h and then redefined later in
Perl.h */
#undef instr
#undef bool
P-
I had to make some changes to the standard c-config.h hints file, the
old 'darwin' one does not work due to conflicts between some perl
definitions and curses.h definitions namely:
instr
bool
FIELD
here's the c-config.h file I altered:
/* Hint file for the darwin platform.
*
* If this configuration doesn't work, look at the file "c-none.h"
* for how to set the configuration options.
*/
#include <curses.h>
#ifdef C_PANELSUPPORT
#include <panel.h>
#endif
#ifdef C_MENUSUPPORT
#include <menu.h>
#endif
/* OK this is hackish, but it solves the problem. */
#ifdef C_FORMSUPPORT
#include "/usr/include/form.h"
#endif
/* FIX: OS X longname only takes 0 args now */
#define C_LONGNAME
#define C_LONG0ARGS
#undef C_LONG2ARGS
/* FIX: OS X touchline is now 3 args */
#define C_TOUCHLINE
#define C_TOUCH3ARGS
#undef C_TOUCH4ARGS
/* These both get defined in curses.h and then redefined later in
Perl.h */
#undef instr
#undef bool
P-