Attached patch fixes compilation failures if
`-Wimplicit-function-declaration` is used.
From e9c1883baf5bd901acae17637fef033ccfe5f816 Mon Sep 17 00:00:00 2001
From: Siteshwar Vashisht <[email protected]>
Date: Tue, 3 Nov 2026 14:30:33 +0100
Subject: [PATCH] Declare `bash_syslog_history()` in `bashhist.h`
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fixes an implicit declaration error in `eval.c`:
```
eval.c: In function ‘alrm_catcher’:
eval.c:248:3: error: implicit declaration of function ‘bash_syslog_history’; did you mean ‘bash_add_history’? [-Wimplicit-function-declaration]
248 | bash_syslog_history (msg);
| ^~~~~~~~~~~~~~~~~~~
| bash_add_history
```
---
bashhist.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/bashhist.h b/bashhist.h
index dcdbdff8..1ca0e479 100644
--- a/bashhist.h
+++ b/bashhist.h
@@ -72,6 +72,7 @@ extern void bash_clear_history (void);
extern int bash_delete_histent (int);
extern int bash_delete_history_range (int, int);
extern int bash_delete_last_history (void);
+extern void bash_syslog_history (const char *);
extern void load_history (void);
extern void save_history (void);
extern char *bash_default_histfile (void);
--
2.56.0