From 07b947e66968a7eb2d9540900a4d173d46313617 Mon Sep 17 00:00:00 2001 From: okuji Date: Sat, 2 Oct 1999 06:36:58 +0000 Subject: [PATCH] define A_NORMAL and/or A_REVERSE if undefined. --- ChangeLog | 8 ++++++++ stage2/shared.h | 13 +++++++++++++ 2 files changed, 21 insertions(+) diff --git a/ChangeLog b/ChangeLog index c19d669fe..371b37957 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +1999-10-02 OKUJI Yoshinori + + Now it is possible to build the grub shell with old BSD curses. + + * stage2/shared.h [!A_NORMAL] (A_NORMAL): Set to zero. + [!A_REVERSE && A_STANDOUT] (A_REVERSE): Set to A_STANDOUT. + [!A_REVERSE && !A_STANDOUT] (A_REVERSE): Set to zero. + 1999-09-30 Pavel Roskin * stage2/disk_io.c (set_bootdev): Mask 0x7F instead of 0x79 of diff --git a/stage2/shared.h b/stage2/shared.h index 3c2d7f52f..3022a8d9f 100644 --- a/stage2/shared.h +++ b/stage2/shared.h @@ -264,6 +264,19 @@ extern char *grub_scratch_mem; # include #endif +/* In old BSD curses, A_NORMAL and A_REVERSE are not defined, so we + define them here if they are undefined. */ +#ifndef A_NORMAL +# define A_NORMAL 0 +#endif /* ! A_NORMAL */ +#ifndef A_REVERSE +# ifdef A_STANDOUT +# define A_REVERSE A_STANDOUT +# else /* ! A_STANDOUT */ +# define A_REVERSE 0 +# endif /* ! A_STANDOUT */ +#endif /* ! A_REVERSE */ + /* Special graphics characters for IBM displays. */ #define DISP_UL 218 #define DISP_UR 191