ecore_con: fix lookup of libcurl on OpenBSD.

@fix T4130

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
This commit is contained in:
Al Poole 2016-07-18 11:22:28 -07:00 committed by Cedric Bail
parent 77afcb596d
commit 8e7253996e
1 changed files with 13 additions and 0 deletions

View File

@ -55,6 +55,19 @@ _c_init(void)
LOAD("libcurl.4.dylib"); // try 1
LOAD("libcurl.so.5"); // if fail try 2
LOAD("libcurl.so.4"); // if fail try 2
#elif defined(__OpenBSD__)
{
char buf[64];
int min;
int maj = 25;
for (min = 0; min < 10; min++)
{
snprintf(buf, sizeof (buf), "libcurl.so.%d.%d", maj, min);
LOAD(buf);
if (_c->mod) break;
}
}
#else
LOAD("libcurl.so.5"); // try only
LOAD("libcurl.so.4"); // try only