svn commit: r418837 - head/devel/dwarves/files
Conrad E. Meyer
cem at FreeBSD.org
Wed Jul 20 14:58:58 UTC 2016
Author: cem (src committer)
Date: Wed Jul 20 14:58:57 2016
New Revision: 418837
URL: https://svnweb.freebsd.org/changeset/ports/418837
Log:
dwarves: Fix build on !__LP64__
Clang defines __LP64__ on such platforms, but not __ILP32__ (before 11). Use
__SIZEOF_LONG__ to detect long bits instead.
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D7236
Modified:
head/devel/dwarves/files/patch-dutil.h
Modified: head/devel/dwarves/files/patch-dutil.h
==============================================================================
--- head/devel/dwarves/files/patch-dutil.h Wed Jul 20 14:03:12 2016 (r418836)
+++ head/devel/dwarves/files/patch-dutil.h Wed Jul 20 14:58:57 2016 (r418837)
@@ -7,13 +7,13 @@
+#if 0
#include <asm/bitsperlong.h>
+#else
-+# if defined(__LP64__)
++# if __SIZEOF_LONG__ == 8
+# define __BITS_PER_LONG 64
-+# elif defined(__ILP32__)
++# elif __SIZEOF_LONG__ == 4
+# define __BITS_PER_LONG 32
+# else
+# error What are you
-+# endif /* __LP64__ */
++# endif
+#endif
#include "rbtree.h"
More information about the svn-ports-head
mailing list