gh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD (#129394)

Make 'sys.platform' return "freebsd" only on FreeBSD without major version.
This commit is contained in:
Michael Osipov
2025-01-31 10:02:45 +01:00
committed by GitHub
parent 8df5193d37
commit e3eba8ce26
5 changed files with 17 additions and 5 deletions

View File

@@ -365,6 +365,7 @@ then
case $MACHDEP in
aix*) MACHDEP="aix";;
freebsd*) MACHDEP="freebsd";;
linux-android*) MACHDEP="android";;
linux*) MACHDEP="linux";;
cygwin*) MACHDEP="cygwin";;