| // Copyright 2018 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef SRC_DEVELOPER_DEBUG_THIRD_PARTY_LIBUNWINDSTACK_FUCHSIA_FUCHSIA_BASENAME_H_ |
| #define SRC_DEVELOPER_DEBUG_THIRD_PARTY_LIBUNWINDSTACK_FUCHSIA_FUCHSIA_BASENAME_H_ |
| |
| #ifndef __USE_GNU |
| #include <lib/syslog/cpp/macros.h> |
| |
| // Empty implementation of the POSIX libgen basename call. The Fuchsia |
| // port does not read files from the filesystem so does not need this call, |
| // although some code that is compiled does reference it. |
| // |
| // This can be implemented easily if we find we need it. |
| inline const char* basename(const char* path) { |
| FX_CHECK(false); |
| return path; |
| } |
| #endif |
| |
| #endif // SRC_DEVELOPER_DEBUG_THIRD_PARTY_LIBUNWINDSTACK_FUCHSIA_FUCHSIA_BASENAME_H_ |