File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 17
17
* and Technology (RIST). All rights reserved.
18
18
* Copyright (c) 2015-2017 Intel, Inc. All rights reserved.
19
19
* Copyright (c) 2021 FUJITSU LIMITED. All rights reserved.
20
+ * Copyright (c) 2023 NVIDIA Corporation. All rights reserved.
20
21
* $COPYRIGHT$
21
22
*
22
23
* Additional copyrights may follow
@@ -568,6 +569,17 @@ typedef struct {
568
569
} opal_short_float_complex_t ;
569
570
# endif
570
571
572
+ /* gcc 13 does not define SSIZE_MAX as required by the POSIX standard.
573
+ * As a workaround we define ours.
574
+ */
575
+ #ifndef SSIZE_MAX
576
+ # if SIZEOF_SSIZE_T == SIZEOF_LONG
577
+ # define SSIZE_MAX LONG_MAX
578
+ # elif SIZEOF_SSIZE_T == SIZEOF_LONG_LONG
579
+ # define SSIZE_MAX LONG_LONG_MAX
580
+ # endif
581
+ #endif
582
+
571
583
#else
572
584
573
585
/* For a similar reason to what is listed in opal_config_top.h, we
You can’t perform that action at this time.
0 commit comments