malloc.h 656 B

1234567891011121314151617
  1. // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
  2. // This source code is licensed under both the GPLv2 (found in the
  3. // COPYING file in the root directory) and Apache 2.0 License
  4. // (found in the LICENSE.Apache file in the root directory).
  5. //
  6. // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
  7. // Use of this source code is governed by a BSD-style license that can be
  8. // found in the LICENSE file. See the AUTHORS file for names of contributors.
  9. #pragma once
  10. #ifdef ROCKSDB_MALLOC_USABLE_SIZE
  11. #ifdef OS_FREEBSD
  12. #include <malloc_np.h>
  13. #else
  14. #include <malloc.h>
  15. #endif // OS_FREEBSD
  16. #endif // ROCKSDB_MALLOC_USABLE_SIZE