Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b02bcae

Browse files
committed
Attempt to fix OpenIndiana build issue introduced by #19922
1 parent 5bb414d commit b02bcae

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

configure

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3447,12 +3447,18 @@ fi
34473447

34483448
# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
34493449
case $ac_sys_system in
3450-
hp*|HP*)
3450+
hp*|HP*)
3451+
define_stdc_a1=yes;;
3452+
*)
3453+
define_stdc_a1=no;;
3454+
esac
3455+
3456+
if test $define_stdc_a1 = yes
3457+
then
34513458

34523459
$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
34533460

3454-
;;
3455-
esac
3461+
fi
34563462

34573463
#
34583464
# SGI compilers allow the specification of the both the ABI and the

configure.ac

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,11 +524,17 @@ fi
524524

525525
# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
526526
case $ac_sys_system in
527-
hp*|HP*)
528-
AC_DEFINE(_INCLUDE__STDC_A1_SOURCE, 1, Define to include mbstate_t for mbrtowc)
529-
;;
527+
hp*|HP*)
528+
define_stdc_a1=yes;;
529+
*)
530+
define_stdc_a1=no;;
530531
esac
531532

533+
if test $define_stdc_a1 = yes
534+
then
535+
AC_DEFINE(_INCLUDE__STDC_A1_SOURCE, 1, Define to include mbstate_t for mbrtowc)
536+
fi
537+
532538
#
533539
# SGI compilers allow the specification of the both the ABI and the
534540
# ISA on the command line. Depending on the values of these switches,

0 commit comments

Comments
 (0)