]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
msgmerge: Fix crash on 32-bit AIX 7.2.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Apr 2019 19:09:38 +0000 (21:09 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Apr 2019 19:09:38 +0000 (21:09 +0200)
* gettext-tools/src/msgmerge.c: Include <omp.h>.
(main): Invoke openmp_init().

gettext-tools/src/msgmerge.c

index be45c82e4f4b307c880882de1cf9ecbeb53e7c0e..2808b5c96a7c7dee6ceab1b6a886be7ea49e5f43 100644 (file)
@@ -28,6 +28,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <locale.h>
+#ifdef _OPENMP
+# include <omp.h>
+#endif
 
 #include <textstyle.h>
 
@@ -459,6 +462,11 @@ There is NO WARRANTY, to the extent permitted by law.\n\
       message_print_style_filepos (filepos_comment_none);
     }
 
+  /* Initialize OpenMP.  */
+  #ifdef _OPENMP
+  openmp_init ();
+  #endif
+
   /* Merge the two files.  */
   result = merge (argv[optind], argv[optind + 1], input_syntax, &def);