summaryrefslogtreecommitdiffstats
path: root/3rdparty/elfutils
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/elfutils')
-rw-r--r--3rdparty/elfutils/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/3rdparty/elfutils/config.h b/3rdparty/elfutils/config.h
index 9cb4767..ea6d41a 100644
--- a/3rdparty/elfutils/config.h
+++ b/3rdparty/elfutils/config.h
@@ -13,7 +13,12 @@
/* Define to 1 if you have the declaration of `powerof2', and to 0 if you
don't. */
+#ifdef __linux__
+// powerof2 is in sys/param.h on linux.
#define HAVE_DECL_POWEROF2 1
+#else
+#define HAVE_DECL_POWEROF2 0
+#endif
/* Define to 1 if you have the declaration of `rawmemchr', and to 0 if you
don't. */