File hplip-sclpml-strcasestr.patch of Package hplip

From 62fefeeef8cd3dff5b25167d6e9060ac85707e6b Mon Sep 17 00:00:00 2001
From: Martin Wilck <mwilck@suse.com>
Date: Tue, 3 Feb 2026 17:57:28 +0100
Subject: [PATCH 22/33] hplip: sclpml-strcasestr

---
 scan/sane/sclpml.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scan/sane/sclpml.c b/scan/sane/sclpml.c
index 3250541..97fa608 100644
--- a/scan/sane/sclpml.c
+++ b/scan/sane/sclpml.c
@@ -51,6 +51,9 @@
 #define DEBUG_DECLARE_ONLY
 #include "sanei_debug.h"
 
+/* This file is not built with _GNU_SOURCE. */
+char *strcasestr(const char *, const char *);
+
 //# define  SCLPML_DEBUG
 # ifdef SCLPML_DEBUG
    # define _DBG(args...) syslog(LOG_INFO, __FILE__ " " STRINGIZE(__LINE__) ": " args)
-- 
2.52.0

openSUSE Build Service is sponsored by