Changeset edf34da5 for general


Ignore:
Timestamp:
05/28/2024 01:42:49 AM (6 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
trunk
Children:
cd85943
Parents:
8975244
git-author:
Xi Ruoyao <xry111@…> (05/28/2024 12:21:25 AM)
git-committer:
Xi Ruoyao <xry111@…> (05/28/2024 01:42:49 AM)
Message:

aalib: Adapt for GCC 14

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/graphlib/aalib.xml

    r8975244 redf34da5  
    105105
    106106    <para>
     107      To allow building this package with GCC-14 or later, add some missing
     108      <literal>#include</literal> directives and fix a bad
     109      <literal>return</literal> statement to make the code C99-compatible.
     110      Then regenerate the <command>configure</command> script to ensure
     111      the C code for probing system features C99-compatible as well:
     112    </para>
     113
     114<screen><userinput>sed -i '1i#include &lt;stdlib.h&gt;'                            \
     115    src/aa{fire,info,lib,linuxkbd,savefont,test,regist}.c &amp;&amp;
     116sed -i '1i#include &lt;string.h&gt;'                            \
     117    src/aa{kbdreg,moureg,test,regist}.c                   &amp;&amp;
     118sed -i '/X11_KBDDRIVER/a#include &lt;X11/Xutil.h&gt;'           \
     119    src/aaxkbd.c                                          &amp;&amp;
     120sed -i '/rawmode_init/,/^}/s/return;/return 0;/'          \
     121    src/aalinuxkbd.c                                      &amp;&amp;
     122autoconf</userinput></screen>
     123
     124    <para>
    107125      Install <application>AAlib</application> by running the following
    108126      commands:
Note: See TracChangeset for help on using the changeset viewer.