Skip to content

Commit 100b112

Browse files
committed
pmix: fix zlib protection macro usage
It's possible that we can have zlib.h but still not have zlib support. Use the correct macro to protect the usage of calling zlib functions. This fixes 32-bit MTT builds at Cisco (e.g., https://mtt.open-mpi.org/index.php?do_redir=2389). Submitted upstream to PMIX: openpmix/openpmix#290 Signed-off-by: Jeff Squyres <[email protected]>
1 parent c62498a commit 100b112

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opal/mca/pmix/pmix2x/pmix/src/util/compress.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2016 Intel, Inc. All rights reserved.
3+
* Copyright (c) 2017 Cisco Systems, Inc. All rights reserved.
34
* $COPYRIGHT$
45
*
56
* Additional copyrights may follow
@@ -21,7 +22,7 @@
2122
#include "src/include/pmix_globals.h"
2223
#include "src/util/compress.h"
2324

24-
#ifdef HAVE_ZLIB_H
25+
#if PMIX_HAVE_ZLIB
2526
bool pmix_util_compress_string(char *instring,
2627
uint8_t **outbytes,
2728
size_t *nbytes)

0 commit comments

Comments
 (0)