From b3dc2f3691528c52587452847590d0477cdb017d Mon Sep 17 00:00:00 2001 From: Peter Dillinger Date: Fri, 25 Oct 2019 12:53:11 -0700 Subject: [PATCH] Update xxhash.cc to allow combined compilation (#5969) Summary: To fix unity_test Pull Request resolved: https://github.com/facebook/rocksdb/pull/5969 Test Plan: make unity_test Differential Revision: D18140426 Pulled By: pdillinger fbshipit-source-id: d5516e6d665f57e3706b9f9b965b0c458e58ccef --- util/xxhash.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/xxhash.cc b/util/xxhash.cc index b35473e1a..1cae65a28 100644 --- a/util/xxhash.cc +++ b/util/xxhash.cc @@ -119,7 +119,10 @@ static void* XXH_memcpy(void* dest, const void* src, size_t size) { return memcp #include /* ULLONG_MAX */ +#ifndef XXH_STATIC_LINKING_ONLY #define XXH_STATIC_LINKING_ONLY +#endif + #include "xxhash.h" /* BEGIN RocksDB customizations */