]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix build on MacOS (#1535)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Wed, 25 Oct 2023 00:27:18 +0000 (00:27 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 25 Oct 2023 00:27:31 +0000 (00:27 +0000)
To use std::nullptr_t it is necessary to include <cstddef>
on MacOS Ventura 13.4.1
with clang version 14.0.3 (Xcode 14.3.1)

src/security/LockingPointer.h

index 99b4d623f4d20e08d96c33a18c9ddc3172798405..bf2dbfeb69e7b834ea72cebf7f339d5d7d2d9d6b 100644 (file)
@@ -12,6 +12,8 @@
 #include "base/Assure.h"
 #include "base/HardFun.h"
 
+#include <cstddef>
+
 #if USE_OPENSSL
 #include "compat/openssl.h"
 #if HAVE_OPENSSL_CRYPTO_H