Fixes for 64-bit linux, courtesy of Phil Toland
This commit is contained in:
parent
56ece164c7
commit
cce9f59058
|
@ -347,7 +347,7 @@ static int open_database(const char* name, DBTYPE type, PortData* data, int* dbr
|
||||||
|
|
||||||
static int close_database(int dbref, PortData* data)
|
static int close_database(int dbref, PortData* data)
|
||||||
{
|
{
|
||||||
printf("Closing %d for port %d\n", dbref, (int)data->port);
|
printf("Closing %d for port %p\n", dbref, data->port);
|
||||||
|
|
||||||
// Remove this database from our list
|
// Remove this database from our list
|
||||||
if (del_dbref(data, dbref))
|
if (del_dbref(data, dbref))
|
||||||
|
|
|
@ -20,7 +20,7 @@ rm -rf system db-${DB_VER}
|
||||||
## Untar and build everything
|
## Untar and build everything
|
||||||
tar -xzf db-${DB_VER}.tar.gz && \
|
tar -xzf db-${DB_VER}.tar.gz && \
|
||||||
(cd db-${DB_VER}/build_unix && \
|
(cd db-${DB_VER}/build_unix && \
|
||||||
../dist/configure --prefix=$WORKDIR --disable-shared && make && ranlib libdb-*.a && make install) && \
|
../dist/configure --prefix=$WORKDIR --disable-shared --with-pic && make && ranlib libdb-*.a && make install) && \
|
||||||
rm -rf db-${DB_VER}
|
rm -rf db-${DB_VER}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue