Index: trunk/src/libs/openssl-3.0.7/include/crypto/aes_platform.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/aes_platform.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/aes_platform.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_AES_PLATFORM_H
 # define OSSL_AES_PLATFORM_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/aes.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/aria.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/aria.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/aria.h	(revision 97984)
@@ -13,5 +13,7 @@
 #ifndef OSSL_CRYPTO_ARIA_H
 # define OSSL_CRYPTO_ARIA_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/asn1.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/asn1.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/asn1.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_ASN1_H
 # define OSSL_CRYPTO_ASN1_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/asn1.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/asn1_dsa.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/asn1_dsa.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/asn1_dsa.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_ASN1_DSA_H
 # define OSSL_CRYPTO_ASN1_DSA_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 #include "internal/packet.h"
Index: trunk/src/libs/openssl-3.0.7/include/crypto/asn1err.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/asn1err.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/asn1err.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_ASN1ERR_H
 # define OSSL_CRYPTO_ASN1ERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/async.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/async.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/async.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_ASYNC_H
 # define OSSL_CRYPTO_ASYNC_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/async.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/asyncerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/asyncerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/asyncerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_ASYNCERR_H
 # define OSSL_CRYPTO_ASYNCERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/bioerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/bioerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/bioerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_BIOERR_H
 # define OSSL_CRYPTO_BIOERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/bn.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/bn.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/bn.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_BN_H
 # define OSSL_CRYPTO_BN_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/bn.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/bnerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/bnerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/bnerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_BNERR_H
 # define OSSL_CRYPTO_BNERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/buffererr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/buffererr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/buffererr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_BUFFERERR_H
 # define OSSL_CRYPTO_BUFFERERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/chacha.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/chacha.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/chacha.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_CHACHA_H
 #define OSSL_CRYPTO_CHACHA_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 #if defined(VBOX) && !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2)
Index: trunk/src/libs/openssl-3.0.7/include/crypto/cmll_platform.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/cmll_platform.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/cmll_platform.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CMLL_PLATFORM_H
 # define OSSL_CMLL_PLATFORM_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # if defined(CMLL_ASM) && (defined(__sparc) || defined(__sparc__))
Index: trunk/src/libs/openssl-3.0.7/include/crypto/cmperr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/cmperr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/cmperr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_CMPERR_H
 # define OSSL_CRYPTO_CMPERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/cmserr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/cmserr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/cmserr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_CMSERR_H
 # define OSSL_CRYPTO_CMSERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/comperr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/comperr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/comperr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_COMPERR_H
 # define OSSL_CRYPTO_COMPERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/conferr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/conferr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/conferr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_CONFERR_H
 # define OSSL_CRYPTO_CONFERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/crmferr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/crmferr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/crmferr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_CRMFERR_H
 # define OSSL_CRYPTO_CRMFERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/cryptlib.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/cryptlib.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/cryptlib.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_CRYPTLIB_H
 # define OSSL_CRYPTO_CRYPTLIB_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/core.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/cryptoerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/cryptoerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/cryptoerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_CRYPTOERR_H
 # define OSSL_CRYPTO_CRYPTOERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/cterr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/cterr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/cterr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_CTERR_H
 # define OSSL_CRYPTO_CTERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/ctype.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/ctype.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/ctype.h	(revision 97984)
@@ -21,5 +21,7 @@
 #ifndef OSSL_CRYPTO_CTYPE_H
 # define OSSL_CRYPTO_CTYPE_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # if !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2)
Index: trunk/src/libs/openssl-3.0.7/include/crypto/decoder.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/decoder.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/decoder.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_DECODER_H
 # define OSSL_CRYPTO_DECODER_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/decoder.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/decodererr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/decodererr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/decodererr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_DECODERERR_H
 # define OSSL_CRYPTO_DECODERERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/des_platform.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/des_platform.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/des_platform.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_DES_PLATFORM_H
 # define OSSL_DES_PLATFORM_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # if defined(DES_ASM) && (defined(__sparc) || defined(__sparc__))
Index: trunk/src/libs/openssl-3.0.7/include/crypto/dh.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/dh.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/dh.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_DH_H
 # define OSSL_CRYPTO_DH_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/core.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/dherr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/dherr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/dherr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_DHERR_H
 # define OSSL_CRYPTO_DHERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/dsa.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/dsa.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/dsa.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_DSA_H
 # define OSSL_CRYPTO_DSA_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/core.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/dsaerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/dsaerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/dsaerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_DSAERR_H
 # define OSSL_CRYPTO_DSAERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/ec.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/ec.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/ec.h	(revision 97984)
@@ -12,5 +12,7 @@
 #ifndef OSSL_CRYPTO_EC_H
 # define OSSL_CRYPTO_EC_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/ecerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/ecerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/ecerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_ECERR_H
 # define OSSL_CRYPTO_ECERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/ecx.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/ecx.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/ecx.h	(revision 97984)
@@ -12,5 +12,7 @@
 #ifndef OSSL_CRYPTO_ECX_H
 # define OSSL_CRYPTO_ECX_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/encoder.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/encoder.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/encoder.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_ENCODER_H
 # define OSSL_CRYPTO_ENCODER_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/types.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/encodererr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/encodererr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/encodererr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_ENCODERERR_H
 # define OSSL_CRYPTO_ENCODERERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/engineerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/engineerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/engineerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_ENGINEERR_H
 # define OSSL_CRYPTO_ENGINEERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/err.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/err.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/err.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_ERR_H
 # define OSSL_CRYPTO_ERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 int ossl_err_load_ERR_strings(void);
Index: trunk/src/libs/openssl-3.0.7/include/crypto/ess.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/ess.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/ess.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_ESS_H
 # define OSSL_CRYPTO_ESS_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 /*-
Index: trunk/src/libs/openssl-3.0.7/include/crypto/esserr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/esserr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/esserr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_ESSERR_H
 # define OSSL_CRYPTO_ESSERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/evp.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/evp.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/evp.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_EVP_H
 # define OSSL_CRYPTO_EVP_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/evp.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/evperr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/evperr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/evperr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_EVPERR_H
 # define OSSL_CRYPTO_EVPERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/httperr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/httperr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/httperr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_HTTPERR_H
 # define OSSL_CRYPTO_HTTPERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/lhash.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/lhash.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/lhash.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_LHASH_H
 # define OSSL_CRYPTO_LHASH_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 unsigned long ossl_lh_strcasehash(const char *);
Index: trunk/src/libs/openssl-3.0.7/include/crypto/objectserr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/objectserr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/objectserr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_OBJECTSERR_H
 # define OSSL_CRYPTO_OBJECTSERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/ocsperr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/ocsperr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/ocsperr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_OCSPERR_H
 # define OSSL_CRYPTO_OCSPERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/pem.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/pem.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/pem.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_PEM_H
 # define OSSL_INTERNAL_PEM_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/pem.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/pemerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/pemerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/pemerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_PEMERR_H
 # define OSSL_CRYPTO_PEMERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/pkcs12err.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/pkcs12err.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/pkcs12err.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_PKCS12ERR_H
 # define OSSL_CRYPTO_PKCS12ERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/pkcs7.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/pkcs7.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/pkcs7.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_PKCS7_H
 # define OSSL_CRYPTO_PKCS7_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 void ossl_pkcs7_resolve_libctx(PKCS7 *p7);
Index: trunk/src/libs/openssl-3.0.7/include/crypto/pkcs7err.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/pkcs7err.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/pkcs7err.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_PKCS7ERR_H
 # define OSSL_CRYPTO_PKCS7ERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/poly1305.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/poly1305.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/poly1305.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_POLY1305_H
 # define OSSL_CRYPTO_POLY1305_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 #if defined(VBOX)
Index: trunk/src/libs/openssl-3.0.7/include/crypto/punycode.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/punycode.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/punycode.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_PUNYCODE_H
 # define OSSL_CRYPTO_PUNYCODE_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 int ossl_punycode_decode (
Index: trunk/src/libs/openssl-3.0.7/include/crypto/rand.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/rand.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/rand.h	(revision 97984)
@@ -18,5 +18,7 @@
 #ifndef OSSL_CRYPTO_RAND_H
 # define OSSL_CRYPTO_RAND_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/rand.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/rand_pool.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/rand_pool.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/rand_pool.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_PROVIDER_RAND_POOL_H
 # define OSSL_PROVIDER_RAND_POOL_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <stdio.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/randerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/randerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/randerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_RANDERR_H
 # define OSSL_CRYPTO_RANDERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/rsa.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/rsa.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/rsa.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_RSA_H
 # define OSSL_INTERNAL_RSA_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/core.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/rsaerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/rsaerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/rsaerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_RSAERR_H
 # define OSSL_CRYPTO_RSAERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/security_bits.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/security_bits.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/security_bits.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_SECURITY_BITS_H
 # define OSSL_SECURITY_BITS_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 uint16_t ossl_ifc_ffc_compute_security_bits(int n);
Index: trunk/src/libs/openssl-3.0.7/include/crypto/sha.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/sha.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/sha.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_SHA_H
 # define OSSL_CRYPTO_SHA_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/sha.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/siphash.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/siphash.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/siphash.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_SIPHASH_H
 # define OSSL_CRYPTO_SIPHASH_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <stddef.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/sm2.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/sm2.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/sm2.h	(revision 97984)
@@ -12,5 +12,7 @@
 #ifndef OSSL_CRYPTO_SM2_H
 # define OSSL_CRYPTO_SM2_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/sm2err.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/sm2err.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/sm2err.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_SM2ERR_H
 # define OSSL_CRYPTO_SM2ERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/sm4.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/sm4.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/sm4.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_SM4_H
 # define OSSL_CRYPTO_SM4_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/sparse_array.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/sparse_array.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/sparse_array.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_SPARSE_ARRAY_H
 # define OSSL_CRYPTO_SPARSE_ARRAY_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/e_os2.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/store.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/store.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/store.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_STORE_H
 # define OSSL_CRYPTO_STORE_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/bio.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/storeerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/storeerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/storeerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_STOREERR_H
 # define OSSL_CRYPTO_STOREERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/tserr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/tserr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/tserr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_TSERR_H
 # define OSSL_CRYPTO_TSERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/types.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/types.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/types.h	(revision 97984)
@@ -12,5 +12,7 @@
 #ifndef OSSL_CRYPTO_TYPES_H
 # define OSSL_CRYPTO_TYPES_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # ifdef OPENSSL_NO_DEPRECATED_3_0
Index: trunk/src/libs/openssl-3.0.7/include/crypto/uierr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/uierr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/uierr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_UIERR_H
 # define OSSL_CRYPTO_UIERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/x509.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/x509.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/x509.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_CRYPTO_X509_H
 # define OSSL_CRYPTO_X509_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include "internal/refcount.h"
Index: trunk/src/libs/openssl-3.0.7/include/crypto/x509err.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/x509err.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/x509err.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_X509ERR_H
 # define OSSL_CRYPTO_X509ERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/crypto/x509v3err.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/crypto/x509v3err.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/crypto/x509v3err.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_CRYPTO_X509V3ERR_H
 # define OSSL_CRYPTO_X509V3ERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/asn1.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/asn1.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/asn1.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_ASN1_H
 # define OSSL_INTERNAL_ASN1_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 int asn1_d2i_read_bio(BIO *in, BUF_MEM **pb);
Index: trunk/src/libs/openssl-3.0.7/include/internal/bio.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/bio.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/bio.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_BIO_H
 # define OSSL_INTERNAL_BIO_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/core.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/conf.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/conf.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/conf.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_CONF_H
 # define OSSL_INTERNAL_CONF_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/conf.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/constant_time.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/constant_time.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/constant_time.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_CONSTANT_TIME_H
 # define OSSL_INTERNAL_CONSTANT_TIME_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <stdlib.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/core.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/core.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/core.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_CORE_H
 # define OSSL_INTERNAL_CORE_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 /*
Index: trunk/src/libs/openssl-3.0.7/include/internal/cryptlib.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/cryptlib.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/cryptlib.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_CRYPTLIB_H
 # define OSSL_INTERNAL_CRYPTLIB_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <stdlib.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/dane.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/dane.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/dane.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_DANE_H
 #define OSSL_INTERNAL_DANE_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/safestack.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/deprecated.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/deprecated.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/deprecated.h	(revision 97984)
@@ -19,5 +19,7 @@
 #ifndef OSSL_INTERNAL_DEPRECATED_H
 # define OSSL_INTERNAL_DEPRECATED_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/configuration.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/dso.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/dso.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/dso.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_DSO_H
 # define OSSL_INTERNAL_DSO_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/crypto.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/dsoerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/dsoerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/dsoerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_INTERNAL_DSOERR_H
 # define OSSL_INTERNAL_DSOERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/endian.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/endian.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/endian.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_ENDIAN_H
 # define OSSL_INTERNAL_ENDIAN_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 /*
Index: trunk/src/libs/openssl-3.0.7/include/internal/err.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/err.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/err.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_ERR_H
 # define OSSL_INTERNAL_ERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 void err_free_strings_int(void);
Index: trunk/src/libs/openssl-3.0.7/include/internal/ffc.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/ffc.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/ffc.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_FFC_H
 # define OSSL_INTERNAL_FFC_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/core.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/ktls.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/ktls.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/ktls.h	(revision 97984)
@@ -23,5 +23,7 @@
 #ifndef HEADER_INTERNAL_KTLS
 # define HEADER_INTERNAL_KTLS
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # ifndef OPENSSL_NO_KTLS
Index: trunk/src/libs/openssl-3.0.7/include/internal/nelem.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/nelem.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/nelem.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_NELEM_H
 # define OSSL_INTERNAL_NELEM_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # define OSSL_NELEM(x)    (sizeof(x)/sizeof((x)[0]))
Index: trunk/src/libs/openssl-3.0.7/include/internal/numbers.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/numbers.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/numbers.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_NUMBERS_H
 # define OSSL_INTERNAL_NUMBERS_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <limits.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/o_dir.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/o_dir.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/o_dir.h	(revision 97984)
@@ -39,5 +39,7 @@
 #ifndef OSSL_INTERNAL_O_DIR_H
 # define OSSL_INTERNAL_O_DIR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 typedef struct OPENSSL_dir_context_st OPENSSL_DIR_CTX;
Index: trunk/src/libs/openssl-3.0.7/include/internal/packet.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/packet.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/packet.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_PACKET_H
 # define OSSL_INTERNAL_PACKET_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <string.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/param_build_set.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/param_build_set.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/param_build_set.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_PARAM_BUILD_SET_H
 # define OSSL_INTERNAL_PARAM_BUILD_SET_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/safestack.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/passphrase.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/passphrase.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/passphrase.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_PASSPHRASE_H
 # define OSSL_INTERNAL_PASSPHRASE_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 /*
Index: trunk/src/libs/openssl-3.0.7/include/internal/property.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/property.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/property.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_INTERNAL_PROPERTY_H
 # define OSSL_INTERNAL_PROPERTY_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include "internal/cryptlib.h"
Index: trunk/src/libs/openssl-3.0.7/include/internal/propertyerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/propertyerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/propertyerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_INTERNAL_PROPERTYERR_H
 # define OSSL_INTERNAL_PROPERTYERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/provider.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/provider.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/provider.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_PROVIDER_H
 # define OSSL_INTERNAL_PROVIDER_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/core.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/refcount.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/refcount.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/refcount.h	(revision 97984)
@@ -9,5 +9,7 @@
 #ifndef OSSL_INTERNAL_REFCOUNT_H
 # define OSSL_INTERNAL_REFCOUNT_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/e_os2.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/sha3.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/sha3.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/sha3.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_INTERNAL_SHA3_H
 # define OSSL_INTERNAL_SHA3_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/e_os2.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/sizes.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/sizes.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/sizes.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_SIZES_H
 # define OSSL_INTERNAL_SIZES_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 /*
Index: trunk/src/libs/openssl-3.0.7/include/internal/sm3.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/sm3.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/sm3.h	(revision 97984)
@@ -12,5 +12,7 @@
 #ifndef OSSL_INTERNAL_SM3_H
 # define OSSL_INTERNAL_SM3_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/sockets.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/sockets.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/sockets.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_SOCKETS_H
 # define OSSL_INTERNAL_SOCKETS_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/sslconf.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/sslconf.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/sslconf.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_SSLCONF_H
 # define OSSL_INTERNAL_SSLCONF_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 typedef struct ssl_conf_cmd_st SSL_CONF_CMD;
Index: trunk/src/libs/openssl-3.0.7/include/internal/symhacks.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/symhacks.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/symhacks.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_SYMHACKS_H
 # define OSSL_INTERNAL_SYMHACKS_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/e_os2.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/thread_once.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/thread_once.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/thread_once.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_THREAD_ONCE_H
 # define OSSL_INTERNAL_THREAD_ONCE_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/crypto.h>
Index: trunk/src/libs/openssl-3.0.7/include/internal/tlsgroups.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/tlsgroups.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/tlsgroups.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_TLSGROUPS_H
 # define OSSL_INTERNAL_TLSGROUPS_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # define OSSL_TLS_GROUP_ID_sect163k1        0x0001
Index: trunk/src/libs/openssl-3.0.7/include/internal/unicode.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/include/internal/unicode.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/include/internal/unicode.h	(revision 97984)
@@ -10,5 +10,7 @@
 #ifndef OSSL_INTERNAL_UNICODE_H
 # define OSSL_INTERNAL_UNICODE_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 typedef enum {
Index: trunk/src/libs/openssl-3.0.7/ssl/sslerr.h
===================================================================
--- trunk/src/libs/openssl-3.0.7/ssl/sslerr.h	(revision 97983)
+++ trunk/src/libs/openssl-3.0.7/ssl/sslerr.h	(revision 97984)
@@ -11,5 +11,7 @@
 #ifndef OSSL_SSLERR_H
 # define OSSL_SSLERR_H
+# ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */
 # pragma once
+# endif                                                                                                 /* VBOX */
 
 # include <openssl/opensslconf.h>
Index: trunk/src/libs/openssl-3.0.7/vbox-pragma-once.sed
===================================================================
--- trunk/src/libs/openssl-3.0.7/vbox-pragma-once.sed	(revision 97984)
+++ trunk/src/libs/openssl-3.0.7/vbox-pragma-once.sed	(revision 97984)
@@ -0,0 +1,50 @@
+# $Id$
+## @file
+# Wraps #pragma once up in #ifndef RT_WITHOUT_PRAGMA_ONCE...#endif.
+#
+# This is for gcc 3.3.x and older which considers #pragma once as obsolete and
+# warns about it unconditionally.  This results in gigantic ValKit build logs
+# and makes them hard to search for actual problems.
+#
+# Apply to include/crypto/*.h and include/internal/*.h with the modify
+# in-place option of sed (not on windows, no eol attribs!):
+#     kmk_sed -f vbox-pragma-once.sed -i include/crypto/*.h include/internal/*.h
+#
+
+#
+# Copyright (C) 2006-2022 Oracle and/or its affiliates.
+#
+# This file is part of VirtualBox base platform packages, as
+# available from https://www.virtualbox.org.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation, in version 3 of the
+# License.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <https://www.gnu.org/licenses>.
+#
+# SPDX-License-Identifier: GPL-3.0-only
+#
+
+# Don't apply to already patched files, so if we see RT_WITHOUT_PRAGMA_ONCE
+# we read in a few more lines.
+/RT_WITHOUT_PRAGMA_ONCE/!b next
+
+:skip
+N
+N
+N
+b end
+
+:next
+# Wrap pragma once in #ifndef RT_WITHOUT_PRAGMA_ONCE.
+s,^\([[:space:]]*[#][[:space:]]*\)pragma[[:space:]][[:space:]]*once\(.*\)$,\1ifndef RT_WITHOUT_PRAGMA_ONCE                                                                         /* VBOX */\n\1pragma once\2\n\1endif                                                                                                 /* VBOX */,
+
+:end
