2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

Make AIX work again

[SVN r15743]
This commit is contained in:
Dave Abrahams
2002-10-05 20:11:57 +00:00
parent 281a5271da
commit dfdf805106

View File

@@ -23,10 +23,10 @@ namespace boost { namespace python { namespace detail {
namespace
{
extern "C" void initlibbpl()
static PyMethodDef initial_methods[] = { { 0, 0, 0, 0 } };
extern "C" void initlibboost_python()
{
static PyMethodDef initial_methods[] = { { 0, 0, 0, 0 } };
Py_InitModule("libbpl", initial_methods);
Py_InitModule("libboost_python", initial_methods);
}
struct find_and_open_file
@@ -105,7 +105,7 @@ void aix_init_module(
static bool initialized;
if (!initialized)
{
char const* const name = "libbpl.so";
char const* const name = "libboost_python.so";
find_and_open_file dynlib("LIBPATH", name);
if (dynlib.fp == 0)
{
@@ -113,8 +113,8 @@ void aix_init_module(
return;
}
std::string::size_type pos = pos = dynlib.filename.find_first_of(".so",0);
if (pos == std::string::npos)
std::string::size_type pos = pos = dynlib.filename.rfind(".so");
if (pos != dynlib.filename.size() - 3)
{
fprintf(stderr, "dynamic library %s must end with .so\n", dynlib.filename.c_str());
return;