https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118780
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:1283b9f946eea07573be5ba0e0785c9e9279b3be commit r13-9390-g1283b9f946eea07573be5ba0e0785c9e9279b3be Author: Richard Biener <rguent...@suse.de> Date: Fri Feb 7 14:42:23 2025 +0100 jit/118780 - make sure to include dlfcn.h when plugin support is disabled The following makes the dlfcn.h explicitly requested which avoids build failure when JIT is enabled but plugin support disabled as currently the include is conditional on plugin support. PR jit/118780 gcc/ * system.h: Check INCLUDE_DLFCN_H for including dlfcn.h instead of ENABLE_PLUGIN. * plugin.cc: Define INCLUDE_DLFCN_H. gcc/jit/ * jit-playback.cc: Define INCLUDE_DLFCN_H. * jit-result.cc: Likewise. (cherry picked from commit e22962538f64bb6e5ac87977ec8a5d86f4ef21cb)