Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fsm_init: fix implicit function declaration _IceTransNoListen
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 #1031 Signed-off-by: Kara <[email protected]>
- Loading branch information