]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
fix: support solaris and deriv
authorGaige B. Paulsen <gaige@cluetrust.com>
Thu, 31 Aug 2023 11:40:44 +0000 (11:40 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 1 Sep 2023 12:31:28 +0000 (13:31 +0100)
psycopg_c/psycopg_c/_psycopg/endian.pxd

index 44e730561f6f88e6f2294e4fb950103a5bdba10d..17a4a547fb3588ffc19f96382c459c9da41e10e0 100644 (file)
@@ -131,6 +131,8 @@ cdef extern from * nogil:
 #      define __LITTLE_ENDIAN LITTLE_ENDIAN
 #      define __PDP_ENDIAN    PDP_ENDIAN
 
+#elif defined(__sun)
+#      include <endian.h>
 #else
 
 #      error platform not supported