mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
too many -lgdbm
This commit is contained in:
parent
df742881c6
commit
5710d771d0
@ -103,9 +103,9 @@ AC_ARG_WITH(id3tag,
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
AC_CHECK_HEADERS(gdbm.h,LDFLAGS="${LDFLAGS} -lgdbm", [
|
AC_CHECK_HEADERS(gdbm.h,, [
|
||||||
AC_MSG_ERROR([gdbm.h not found... try --with-gdmb-includes=dir])])
|
AC_MSG_ERROR([gdbm.h not found... try --with-gdmb-includes=dir])])
|
||||||
AC_CHECK_LIB(gdbm,gdbm_open,LDFLAGS="$LDFLAGS -lgdbm", echo "Must have gdbm";exit)
|
AC_CHECK_LIB(gdbm,gdbm_open,, echo "Must have gdbm";exit)
|
||||||
|
|
||||||
AC_CHECK_HEADERS(id3tag.h,LDFLAGS="${LDFLAGS} -lid3tag",[
|
AC_CHECK_HEADERS(id3tag.h,LDFLAGS="${LDFLAGS} -lid3tag",[
|
||||||
AC_MSG_ERROR([id3tag.h not found... try --with-id3tag=dir])])
|
AC_MSG_ERROR([id3tag.h not found... try --with-id3tag=dir])])
|
||||||
|
@ -217,7 +217,6 @@ int db_init(void) {
|
|||||||
MP3FILE mp3file;
|
MP3FILE mp3file;
|
||||||
datum tmp_key,tmp_nextkey,song_data;
|
datum tmp_key,tmp_nextkey,song_data;
|
||||||
|
|
||||||
|
|
||||||
if((db_removed=rbinit(db_compare_rb_nodes,NULL)) == NULL) {
|
if((db_removed=rbinit(db_compare_rb_nodes,NULL)) == NULL) {
|
||||||
errno=ENOMEM;
|
errno=ENOMEM;
|
||||||
return -1;
|
return -1;
|
||||||
@ -330,6 +329,7 @@ int db_end_initial_update(void) {
|
|||||||
db_delete(*((int*)val));
|
db_delete(*((int*)val));
|
||||||
free(val);
|
free(val);
|
||||||
}
|
}
|
||||||
|
DPRINTF(ERR_DEBUG,"Done removing stale items\n");
|
||||||
|
|
||||||
rbdestroy(db_removed);
|
rbdestroy(db_removed);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user