Prevent error: implicit declaration of function ‘get_local_home’

[-Werror=implicit-function-declaration], if editline is selected.
This commit is contained in:
Holger Vogt 2024-03-16 23:18:13 +01:00
parent 0c2c10eb9c
commit e27f093fb7
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@
It is not vailable with older libedit versions (pre-1.42.2) , thus we have to set it ourselves */ It is not vailable with older libedit versions (pre-1.42.2) , thus we have to set it ourselves */
#ifdef HAVE_BSDEDITLINE #ifdef HAVE_BSDEDITLINE
#include <editline/readline.h> #include <editline/readline.h>
#include "../misc/tilde.h"
#ifndef rl_hook_func_t #ifndef rl_hook_func_t
typedef int rl_hook_func_t(void); typedef int rl_hook_func_t(void);
#endif #endif