Build with Oracle Solaris Studio
Maxim Zakharov <[email protected]>
| Newsgroups | gmane.comp.db.postgresql.odbc |
|---|---|
| Message-ID | <CAFWuPyrEiHQj=ugB4U2tk3thEz_wUL-i7BKvOP3OQBpuQQbS+Q@mail.gmail.com> |
Hi, the small patch attached makes psqlodbc buildable using Oracle Solaris Studio (tested with version 12.3). Regards, Maxim -- http://au.linkedin.com/in/dpmaxime/
0001-fix-build-on-Solaris-using-Solarisstudio.patch
(application/octet-stream, 657 B)
From 576c0327a7a5457663fa77c1f793fd754479f6d2 Mon Sep 17 00:00:00 2001 From: Maxim Zakharov <[email protected]> Date: Fri, 11 May 2018 18:36:58 +1000 Subject: [PATCH] fix build on Solaris using Solaris Studio --- psqlodbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psqlodbc.c b/psqlodbc.c index b12916d..d903be7 100644 --- a/psqlodbc.c +++ b/psqlodbc.c @@ -154,7 +154,7 @@ DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) #else /* not WIN32 */ -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__SUNPRO_C) /* Shared library initializer and destructor, using gcc's attributes */ -- 1.8.3.1