summaryrefslogtreecommitdiffstats
path: root/3rdparty/elfutils
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-01-31 19:00:09 +0100
committerUlf Hermann <ulf.hermann@qt.io>2017-02-01 15:37:12 +0000
commitde515e15bfcfcabc0cba028d8008c3473b155a4d (patch)
tree424e557ce206f2e7d3fc062b5caad441d5430a99 /3rdparty/elfutils
parent0746d3f95a615304c0ade71a5c0357e8a3bad93f (diff)
Actually check for the availability of powerof2
It seems to only exists on linux. Change-Id: Iff3d208f686cf69dd32b8078ce207a776d3f7f55 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
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. */