summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Christoph Cullmann <cullmann@kde.org>2019-05-27 14:08:25 +0200
committerGravatar Christoph Cullmann <cullmann@kde.org>2019-05-29 17:01:10 +0200
commit01033dba23e32ef76fae83be96e10a4b367b1da6 (patch)
tree5939b5577269abef250f31fbdd873cf21fbb85e7
parent4adaf5490921f13028b55018c9f550277de5aebb (diff)
avoid use of undefined ABSL_HAVE_ELF_MEM_IMAGE
this avoids e.g. on macOS: In file included from abseil-cpp/absl/debugging/internal/elf_mem_image.cc:18: abseil-cpp/absl/debugging/internal/elf_mem_image.h:37:5: error: 'ABSL_HAVE_ELF_MEM_IMAGE' is not defined, evaluates to 0 [-Werror,-Wundef] ^ 1 error generated.
-rw-r--r--absl/debugging/internal/elf_mem_image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/debugging/internal/elf_mem_image.h b/absl/debugging/internal/elf_mem_image.h
index 99b37580..d84200db 100644
--- a/absl/debugging/internal/elf_mem_image.h
+++ b/absl/debugging/internal/elf_mem_image.h
@@ -34,7 +34,7 @@
#define ABSL_HAVE_ELF_MEM_IMAGE 1
#endif
-#if ABSL_HAVE_ELF_MEM_IMAGE
+#ifdef ABSL_HAVE_ELF_MEM_IMAGE
#include <link.h> // for ElfW