Fix FTBFS with -Werror=implicit-function-declaration; fix-ftbfs-incomplete-typedef

This commit is contained in:
Rewnosor 2024-08-02 16:45:51 +08:00
parent f2bdcfb0af
commit 566d6cd554
4 changed files with 11 additions and 2 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
aalib (1.4p5-ok2) nile; urgency=medium
* Fix FTBFS with -Werror=implicit-function-declaration.
* Fix ftbfs incomplete typedef.
-- liwenjun <liwenjun@kylinos.cn> Fri, 02 Aug 2024 16:44:47 +0800
aalib (1.4p5-ok1) yangtze; urgency=medium
* Build for openKylin.

View File

@ -77,8 +77,7 @@ static void curses_getsize(aa_context * c, int *width, int *height)
{
if (__resized_curses)
curses_uninit(c), curses_init(&c->params, NULL,&c->driverparams, NULL), __resized_curses = 0;
*width = stdscr->_maxx + 1;
*height = stdscr->_maxy + 1;
getmaxyx(stdscr, *width, *height);
#ifdef GPM_MOUSEDRIVER
gpm_mx = *width;
gpm_my = *height;

View File

@ -23,6 +23,8 @@
#ifndef __AALIB_INCLUDED__
#define __AALIB_INCLUDED__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -7,6 +7,7 @@
#include <X11/Xlib.h>
#include <X11/keysymdef.h>
#include <X11/keysym.h>
#include <X11/Xutil.h>
#include "aalib.h"
#include "aaint.h"
#include "aaxint.h"