summaryrefslogtreecommitdiff
path: root/debian/patches/libgomp-omp_h-multilib.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/libgomp-omp_h-multilib.diff')
-rw-r--r--debian/patches/libgomp-omp_h-multilib.diff12
1 files changed, 8 insertions, 4 deletions
diff --git a/debian/patches/libgomp-omp_h-multilib.diff b/debian/patches/libgomp-omp_h-multilib.diff
index e93f55b..8eb4549 100644
--- a/debian/patches/libgomp-omp_h-multilib.diff
+++ b/debian/patches/libgomp-omp_h-multilib.diff
@@ -8,15 +8,19 @@
* omp.h.in (omp_nest_lock_t): Limit the fix Linux.
-Index: b/src/libgomp/omp.h.in
-===================================================================
--- a/src/libgomp/omp.h.in
+++ b/src/libgomp/omp.h.in
-@@ -40,8 +40,13 @@ typedef struct
+@@ -40,8 +40,19 @@ typedef struct
typedef struct
{
-+#if defined(__linux__)
++ /*
++ Derive OMP_NEST_LOCK_SIZE and OMP_NEST_LOCK_ALIGN, don't hard
++ code the values because the header is used for all multilibs.
++ OMP_NEST_LOCK_SIZE = @OMP_NEST_LOCK_SIZE@
++ OMP_NEST_LOCK_ALIGN = @OMP_NEST_LOCK_ALIGN@
++ */
++#if defined(__linux__) && !(defined(__hppa__) || defined(__alpha__))
+ unsigned char _x[8 + sizeof (void *)]
+ __attribute__((__aligned__(sizeof (void *))));
+#else