Add sqlite3, fix minor compilation problems

This commit is contained in:
Ron Pedde 2006-03-06 06:29:03 +00:00
parent dad6b9e9d5
commit a6248dfc98
5 changed files with 9 additions and 4 deletions

View File

@ -35,7 +35,9 @@
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
#include "conf.h"
#include "err.h"

View File

@ -682,7 +682,7 @@ void make_composite_tags(MP3FILE *song) {
if((conf_get_int("scanning","concat compilations",0)) &&
song->artist &&
song->title) {
len = strlen(song->artist) + strlen(song->title);
len = (int)strlen(song->artist) + (int)strlen(song->title);
ptmp = (char*)malloc(len + 4);
if(ptmp) {
sprintf(ptmp,"%s - %s",song->artist, song->title);

View File

@ -144,7 +144,7 @@ int rend_register(char *name, char *type, int port, char *iface, char *txt) {
name, type, port);
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 */
if(!rend_count) {

View File

@ -32,7 +32,7 @@
#define HAVE_LIBSQLITE 1
/* 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). */
/* #undef HAVE_LIBVORBIS */

View File

@ -135,6 +135,9 @@
<File
RelativePath="..\src\db-sql-sqlite2.c">
</File>
<File
RelativePath="..\src\db-sql-sqlite3.c">
</File>
<File
RelativePath="..\src\db-sql.c">
</File>