Skip to content

Conversation

kro-cat
Copy link
Contributor

@kro-cat kro-cat commented Jun 7, 2024

  • What does this PR do?
    Add a check in configure.ac to determine if the build system has X11/Xtrans/Xtrans.h, and define ICE_t and TRANS_SERVER if it does.

    Add a preprocessor step in lib/fsm.c to switch between using Xtrans.h or an extern declaration for the _IceTransNoListen symbol depending on whether or not the build system has Xtrans.h.

  • Issue number(s)
    Fixes Implicit function _IceTransNoListen in fsm.c #1031

A declaration is required for `_IceTransNoListen` to link against libICE.

`_IceTransNoListen` is declared in X11/Xtrans/Xtrans.h (`xtrans-dev`) only when
configured for libICE by defining the following symbols: `ICE_t`
`TRANS_SERVER`.

(see [libICE configure.ac](https://gitlab.freedesktop.org/xorg/lib/libice/-/blob/master/configure.ac))

Add a check in configure.ac to determine if the build system has
X11/Xtrans/Xtrans.h, and define `ICE_t` and `TRANS_SERVER` if it does.

Add a preprocessor step in lib/fsm.c to switch between using Xtrans.h or
an extern declaration for the `_IceTransNoListen` symbol depending on
whether or not the build system has Xtrans.h.

Fixes fvwmorg#1031

Signed-off-by: Kara <33235324+kro-cat@users.noreply.github.com>
@ThomasAdam ThomasAdam added the area:build Relates to compiling/buildsystem of fvwm label Jun 10, 2024
@ThomasAdam ThomasAdam merged commit dfc46dd into fvwmorg:main Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:build Relates to compiling/buildsystem of fvwm
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Implicit function _IceTransNoListen in fsm.c
2 participants