From 470851e10263af02946f3581170eb4afde0d4569 Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Fri, 16 Jan 2026 11:11:50 +0900
Subject: Remove support for HPUX, which is discontinued and does not provide a
 c++17 complaint compiler.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 src/imageplugins/coreplugin/sharpnesseditor/clapack/err.c  | 2 --
 src/imageplugins/coreplugin/sharpnesseditor/clapack/util.c | 2 --
 src/libs/sqlite2/os.h                                      | 5 -----
 src/libs/sqlite3/sqlite3.c                                 | 4 +---
 4 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/src/imageplugins/coreplugin/sharpnesseditor/clapack/err.c b/src/imageplugins/coreplugin/sharpnesseditor/clapack/err.c
index 90af7cae..60f31013 100644
--- a/src/imageplugins/coreplugin/sharpnesseditor/clapack/err.c
+++ b/src/imageplugins/coreplugin/sharpnesseditor/clapack/err.c
@@ -1,6 +1,4 @@
 #ifndef NON_UNIX_STDIO
-#define _INCLUDE_POSIX_SOURCE	/* for HP-UX */
-#define _INCLUDE_XOPEN_SOURCE	/* for HP-UX */
 #include "sys/types.h"
 #include "sys/stat.h"
 #endif
diff --git a/src/imageplugins/coreplugin/sharpnesseditor/clapack/util.c b/src/imageplugins/coreplugin/sharpnesseditor/clapack/util.c
index 684cdfc4..2546b4d5 100644
--- a/src/imageplugins/coreplugin/sharpnesseditor/clapack/util.c
+++ b/src/imageplugins/coreplugin/sharpnesseditor/clapack/util.c
@@ -1,6 +1,4 @@
 #ifndef NON_UNIX_STDIO
-#define _INCLUDE_POSIX_SOURCE	/* for HP-UX */
-#define _INCLUDE_XOPEN_SOURCE	/* for HP-UX */
 #include "sys/types.h"
 #include "sys/stat.h"
 #endif
diff --git a/src/libs/sqlite2/os.h b/src/libs/sqlite2/os.h
index f56e4478..f3e9f6a4 100644
--- a/src/libs/sqlite2/os.h
+++ b/src/libs/sqlite2/os.h
@@ -17,11 +17,6 @@
 #ifndef _SQLITE_OS_H_
 #define _SQLITE_OS_H_
 
-/*
-** Helpful hint:  To get this to compile on HP/UX, add -D_INCLUDE_POSIX_SOURCE
-** to the compiler command line.
-*/
-
 /*
 ** These #defines should enable >2GB file support on Posix if the
 ** underlying operating system supports it.  If the OS lacks
diff --git a/src/libs/sqlite3/sqlite3.c b/src/libs/sqlite3/sqlite3.c
index 87195d9a..d1eae566 100644
--- a/src/libs/sqlite3/sqlite3.c
+++ b/src/libs/sqlite3/sqlite3.c
@@ -13493,9 +13493,7 @@ SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex *p){
 ** deliver incorrect results.  In particular, if pthread_equal() is
 ** not an atomic operation, then these routines might delivery
 ** incorrect results.  On most platforms, pthread_equal() is a 
-** comparison of two integers and is therefore atomic.  But we are
-** told that HPUX is not such a platform.  If so, then these routines
-** will not always work correctly on HPUX.
+** comparison of two integers and is therefore atomic.
 **
 ** On those platforms where pthread_equal() is not atomic, SQLite
 ** should be compiled without -DSQLITE_DEBUG and with -DNDEBUG to
-- 
cgit v1.2.3

