From: Amos Jeffries Date: Wed, 31 May 2023 23:46:51 +0000 (+0000) Subject: Fix missing portability warning for Solaris (#1360) X-Git-Tag: SQUID_7_0_1~433 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27dfa3ab73138ef4bd73ba400736d898b36b94fc;p=thirdparty%2Fsquid.git 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. --- 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. */