diff --git a/django/contrib/gis/gdal/libgdal.py b/django/contrib/gis/gdal/libgdal.py index 151823731c..76cca40de9 100644 --- a/django/contrib/gis/gdal/libgdal.py +++ b/django/contrib/gis/gdal/libgdal.py @@ -7,8 +7,8 @@ if os.name == 'nt': lib_name = 'libgdal-1.dll' elif os.name == 'posix': platform = os.uname()[0] - if platform == 'Linux': - # Linux shared library + if platform in ('Linux', 'SunOS'): + # Linux or Solaris shared library lib_name = 'libgdal.so' elif platform == 'Darwin': # Mac OSX shared library diff --git a/django/contrib/gis/geos/GEOSGeometry.py b/django/contrib/gis/geos/GEOSGeometry.py index e5b529c431..e710e228d3 100644 --- a/django/contrib/gis/geos/GEOSGeometry.py +++ b/django/contrib/gis/geos/GEOSGeometry.py @@ -72,8 +72,8 @@ if os.name == 'nt': lib_name = 'libgeos_c-1.dll' elif os.name == 'posix': platform = os.uname()[0] # Using os.uname() - if platform == 'Linux': - # Linux shared library + if platform in ('Linux', 'SunOS'): + # Linux or Solaris shared library lib_name = 'libgeos_c.so' elif platform == 'Darwin': # Mac OSX Shared Library (Thanks Matt!)