summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-08-09 15:51:22 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-09 15:51:22 (GMT)
commit574666b6cb6ccfda0c638f1b08d5a227c2bd743e (patch)
tree0f376016c3103d5bbb82f3f179d058adcd94562a /Utilities
parentad4452d1bdabcdf039f812f2b709a905d76e8da0 (diff)
downloadCMake-574666b6cb6ccfda0c638f1b08d5a227c2bd743e.zip
CMake-574666b6cb6ccfda0c638f1b08d5a227c2bd743e.tar.gz
CMake-574666b6cb6ccfda0c638f1b08d5a227c2bd743e.tar.bz2
librhash: Avoid incorrect int8_t definition with PGI on Linux ppc64le
`sys/types.h` defines `int8_t` incorrectly as `char` which is unsigned. Adjust ordering so `inttypes.h` defines it as `signed char` first.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmlibrhash/librhash/rhash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmlibrhash/librhash/rhash.c b/Utilities/cmlibrhash/librhash/rhash.c
index ad6249b..34e1eb3 100644
--- a/Utilities/cmlibrhash/librhash/rhash.c
+++ b/Utilities/cmlibrhash/librhash/rhash.c
@@ -18,6 +18,8 @@
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64
+#include "ustd.h" /* Need this first within CMake. */
+
#include <string.h> /* memset() */
#include <stdlib.h> /* free() */
#include <stddef.h> /* ptrdiff_t */