From 27dfa3ab73138ef4bd73ba400736d898b36b94fc Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 31 May 2023 23:46:51 +0000 Subject: [PATCH] Fix missing portability warning for Solaris (#1360) These headers contain implementations of POSIX API and cannot be touched without the required OS-specific knowledge. The addition or update of Solaris portability logic wrongly omitted this warning. --- compat/os/opensolaris_10_netdb.h | 12 +++++++++--- compat/os/solaris.h | 6 ++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/compat/os/opensolaris_10_netdb.h b/compat/os/opensolaris_10_netdb.h index bbdf3c32b8..aaa39866a5 100644 --- a/compat/os/opensolaris_10_netdb.h +++ b/compat/os/opensolaris_10_netdb.h @@ -74,15 +74,21 @@ * End BIND 4.9.3 */ +#ifndef _NETDB_H +#define _NETDB_H + +/**************************************************************************** + *--------------------------------------------------------------------------* + * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...* + *--------------------------------------------------------------------------* + ****************************************************************************/ + /* * Structures returned by network data base library. * All addresses are supplied in host order, and * returned in network order (suitable for use in system calls). */ -#ifndef _NETDB_H -#define _NETDB_H - #include #include #if !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__) diff --git a/compat/os/solaris.h b/compat/os/solaris.h index c5c3b666a5..eb717c827a 100644 --- a/compat/os/solaris.h +++ b/compat/os/solaris.h @@ -11,6 +11,12 @@ #if _SQUID_SOLARIS_ +/**************************************************************************** + *--------------------------------------------------------------------------* + * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...* + *--------------------------------------------------------------------------* + ****************************************************************************/ + /* * ugly hack. System headers require wcsstr, but don't define it. */ -- 2.47.3