Trying to fix build problems related to curses.
This commit is contained in:
parent
72d683e0ee
commit
a3f6e2f9c4
@ -1,7 +1,20 @@
|
|||||||
#ifdef __hpux
|
#ifdef __hpux
|
||||||
#define _XOPEN_SOURCE_EXTENDED
|
|
||||||
#define _BOOL_DEFINED
|
#define _BOOL_DEFINED
|
||||||
|
#ifndef _XOPEN_SOURCE_EXTENDED
|
||||||
|
#include <sys/time.h>
|
||||||
|
#define _XOPEN_SOURCE_EXTENDED
|
||||||
|
#include <curses.h>
|
||||||
|
#include <form.h>
|
||||||
|
#undef _XOPEN_SOURCE_EXTENDED
|
||||||
|
#else
|
||||||
|
#include <curses.h>
|
||||||
|
#include <form.h>
|
||||||
|
#endif
|
||||||
|
#else /* __hpux */
|
||||||
|
#include <curses.h>
|
||||||
|
#include <form.h>
|
||||||
#endif /* __hpux */
|
#endif /* __hpux */
|
||||||
|
|
||||||
#include <curses.h>
|
#ifndef getmaxyx
|
||||||
#include <form.h>
|
#define getmaxyx(w,y,x) ((y) = getmaxy(w), (x) = getmaxx(w))
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user