* On 2018-02-16 at 22:09 GMT, Daniel Kontsek wrote:

> We are deploying a lot of Python software on SmartOS zones and since we are 
> also using Postgres, we need the psycopg2 Python module. Recently, I came a 
> across an issue with the latest version of psycopg2 which now, can not be 
> compiled on SmartOS: https://github.com/psycopg/psycopg2/issues/677 
> <https://github.com/psycopg/psycopg2/issues/677>
> 
> It turns out that this happened because of a patch that _added_ support for 
> Solaris 10 (https://github.com/psycopg/psycopg2/pull/606 
> <https://github.com/psycopg/psycopg2/pull/606>). I’m not that good in C, but 
> maybe someone here can propose a (simple?) fix for this issue (or point me to 
> some macro or something…).

It's not ideal (the correct fix would be to implement a feature test
for those functions), but the quick way I'd do it would be:

 - add a '&& !defined(timeradd)' to line 30 of solaris_support.c

 - add a '#ifndef timeradd ... #endif' block around the two function
   definitions in solaris_support.h (lines 33 and 34).

Cheers,

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to