mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
Add sqlite3, fix minor compilation problems
This commit is contained in:
parent
dad6b9e9d5
commit
a6248dfc98
@ -35,7 +35,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <sys/param.h>
|
#ifdef HAVE_SYS_PARAM_H
|
||||||
|
# include <sys/param.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
#include "err.h"
|
#include "err.h"
|
||||||
|
@ -682,7 +682,7 @@ void make_composite_tags(MP3FILE *song) {
|
|||||||
if((conf_get_int("scanning","concat compilations",0)) &&
|
if((conf_get_int("scanning","concat compilations",0)) &&
|
||||||
song->artist &&
|
song->artist &&
|
||||||
song->title) {
|
song->title) {
|
||||||
len = strlen(song->artist) + strlen(song->title);
|
len = (int)strlen(song->artist) + (int)strlen(song->title);
|
||||||
ptmp = (char*)malloc(len + 4);
|
ptmp = (char*)malloc(len + 4);
|
||||||
if(ptmp) {
|
if(ptmp) {
|
||||||
sprintf(ptmp,"%s - %s",song->artist, song->title);
|
sprintf(ptmp,"%s - %s",song->artist, song->title);
|
||||||
|
@ -144,7 +144,7 @@ int rend_register(char *name, char *type, int port, char *iface, char *txt) {
|
|||||||
name, type, port);
|
name, type, port);
|
||||||
|
|
||||||
DNSServiceRegister(&rend_client,0,kDNSServiceInterfaceIndexAny,name,type,"local",NULL,
|
DNSServiceRegister(&rend_client,0,kDNSServiceInterfaceIndexAny,name,type,"local",NULL,
|
||||||
htons((unsigned short)port),strlen(txt),txt,rend_reg_reply, NULL);
|
port_netorder,(uint16_t)strlen(txt),txt,rend_reg_reply, NULL);
|
||||||
|
|
||||||
/* throw off a new thread work this */
|
/* throw off a new thread work this */
|
||||||
if(!rend_count) {
|
if(!rend_count) {
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#define HAVE_LIBSQLITE 1
|
#define HAVE_LIBSQLITE 1
|
||||||
|
|
||||||
/* Define to 1 if you have the `sqlite3' library (-lsqlite3). */
|
/* Define to 1 if you have the `sqlite3' library (-lsqlite3). */
|
||||||
/* #define HAVE_LIBSQLITE3 1 */
|
#define HAVE_LIBSQLITE3 1
|
||||||
|
|
||||||
/* Define to 1 if you have the `vorbis' library (-lvorbis). */
|
/* Define to 1 if you have the `vorbis' library (-lvorbis). */
|
||||||
/* #undef HAVE_LIBVORBIS */
|
/* #undef HAVE_LIBVORBIS */
|
||||||
|
@ -135,6 +135,9 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath="..\src\db-sql-sqlite2.c">
|
RelativePath="..\src\db-sql-sqlite2.c">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\src\db-sql-sqlite3.c">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\db-sql.c">
|
RelativePath="..\src\db-sql.c">
|
||||||
</File>
|
</File>
|
||||||
|
Loading…
Reference in New Issue
Block a user