diff options
author | Jakub KulĂk <Kulikjak@gmail.com> | 2023-10-09 21:18:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 21:18:05 (GMT) |
commit | 3b1580af07c0ce90d1c2073ab087772283d7e3b9 (patch) | |
tree | 764bd45ee98417ec03223e7d0324cf93cf0c36ca /configure | |
parent | 0050670d76193ea529f51d0526256cb7a769d61b (diff) | |
download | cpython-3b1580af07c0ce90d1c2073ab087772283d7e3b9.zip cpython-3b1580af07c0ce90d1c2073ab087772283d7e3b9.tar.gz cpython-3b1580af07c0ce90d1c2073ab087772283d7e3b9.tar.bz2 |
gh-78469: Declare missing sethostname for Solaris 10 (#109447)
Add OS version specific macro for Solaris: Py_SUNOS_VERSION.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -4284,6 +4284,15 @@ then darwin*) MACHDEP="darwin";; '') MACHDEP="unknown";; esac + + if test "$ac_sys_system" = "SunOS"; then + # For Solaris, there isn't an OS version specific macro defined + # in most compilers, so we define one here. + SUNOS_VERSION=`echo $ac_sys_release | sed -e 's!\.\(0-9\)$!.0\1!g' | tr -d '.'` + +printf "%s\n" "#define Py_SUNOS_VERSION $SUNOS_VERSION" >>confdefs.h + + fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5 printf "%s\n" "\"$MACHDEP\"" >&6; } |