X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ui%2Fncurses%2Fnc-scr.c;h=d2455d4408c72ecef8bc41414e95473616b20aae;hb=815df381d55e09fd291145ef2b86729c12583366;hp=3966e956aac504037663a6a046a6859282ea0f88;hpb=863c609797ca6d556dd3a4586fc07a6f4a5472d4;p=petitboot diff --git a/ui/ncurses/nc-scr.c b/ui/ncurses/nc-scr.c index 3966e95..d2455d4 100644 --- a/ui/ncurses/nc-scr.c +++ b/ui/ncurses/nc-scr.c @@ -16,6 +16,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "config.h" + +#define _GNU_SOURCE + #include #include @@ -102,7 +106,7 @@ void nc_scr_status_printf(struct nc_scr *scr, const char *format, ...) int nc_scr_init(struct nc_scr *scr, enum pb_nc_sig sig, int begin_x, void *ui_ctx, - void (*process_key)(struct nc_scr *), + void (*process_key)(struct nc_scr *, int), int (*post)(struct nc_scr *), int (*unpost)(struct nc_scr *), void (*resize)(struct nc_scr *))