diff options
author | Michele Calgaro <[email protected]> | 2025-02-02 12:03:48 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2025-02-02 18:53:14 +0900 |
commit | 6c470287a59581d8fcfb82d37fe0ca3dbf8a790b (patch) | |
tree | 5b205f0ee0796be4c5a5ecf6e47e16525bfda121 /src/libs | |
parent | a53aeabfea9901db78580087f1f7381d9a10d81a (diff) | |
download | digikam-6c470287a59581d8fcfb82d37fe0ca3dbf8a790b.tar.gz digikam-6c470287a59581d8fcfb82d37fe0ca3dbf8a790b.zip |
Fix FTBFS with gcc 15. This resolves issue #44
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 0bf733ec1780acd7d7f0122559029e09001b840e)
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/sqlite2/shell.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libs/sqlite2/shell.c b/src/libs/sqlite2/shell.c index 2d99603a..dd3d9456 100644 --- a/src/libs/sqlite2/shell.c +++ b/src/libs/sqlite2/shell.c @@ -25,6 +25,9 @@ # include <pwd.h> # include <unistd.h> # include <sys/types.h> +#else +/* Make sure isatty() has a prototype */ +extern int isatty(int); #endif #if defined(HAVE_READLINE) && HAVE_READLINE==1 @@ -38,10 +41,6 @@ # define stifle_history(X) #endif -/* Make sure isatty() has a prototype. -*/ -extern int isatty(); - /* ** The following is the open SQLite database. We make a pointer ** to this database a static variable so that it can be accessed |