External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
577B

  1. --- suil-static-0.10.12.orig/src/suil_internal.h
  2. +++ suil-static-0.10.12/src/suil_internal.h
  3. @@ -113,8 +113,12 @@ suil_host_init(void);
  4. static inline void*
  5. suil_open_module(const char* module_name)
  6. {
  7. +#ifdef KXSTUDIO_SUIL_MODULE_DIR
  8. + const char* const mod_dir = KXSTUDIO_SUIL_MODULE_DIR;
  9. +#else
  10. const char* const env_dir = getenv("SUIL_MODULE_DIR");
  11. const char* const mod_dir = env_dir ? env_dir : SUIL_MODULE_DIR;
  12. +#endif
  13. const size_t path_len =
  14. strlen(mod_dir) + strlen(SUIL_DIR_SEP SUIL_MODULE_PREFIX SUIL_MODULE_EXT) +
  15. strlen(module_name) + 2;