Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fsm_init: fix implicit function declaration _IceTransNoListen #1032

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
5 checks passed
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