diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/gettext/nvhpc-long-width.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/gettext/nvhpc-long-width.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gettext/nvhpc-long-width.patch b/var/spack/repos/builtin/packages/gettext/nvhpc-long-width.patch new file mode 100644 index 0000000000..ca4c8e58b7 --- /dev/null +++ b/var/spack/repos/builtin/packages/gettext/nvhpc-long-width.patch @@ -0,0 +1,17 @@ +--- a/gettext-tools/libgrep/regex_internal.h 2020-08-21 09:14:20.039942370 -0700 ++++ b/gettext-tools/libgrep/regex_internal.h 2020-08-21 10:06:57.840331452 -0700 +@@ -35,6 +35,14 @@ + #include <intprops.h> + #include <verify.h> + ++#ifndef __LONG_WIDTH__ ++#if LONG_WIDTH ++#define __LONG_WIDTH__ LONG_WIDTH ++#else ++#define __LONG_WIDTH__ __WORDSIZE ++#endif ++#endif ++ + #if defined DEBUG && DEBUG != 0 + # include <assert.h> + # define DEBUG_ASSERT(x) assert (x) |