Fix check DB and FreeBSD compatibility #1

Merged
merged 2 commits into from Aug 7, 2012

Conversation

Projects
None yet
2 participants
Contributor

ccesario commented Aug 6, 2012

No description provided.

ccesario added some commits Aug 6, 2012

@ccesario ccesario Fix check DB version
Prevents this error in compile process

gcc -Wall -Werror -g -O2 -I/usr/local/include/db4 -I/usr/include  -DDEFAULT_CONFIGFILE="\"/usr/local/etc/squid/squidGuard.conf\""  -DEFAULT_LOGDIR="\"/var/log\""  -DDEFAULT_DBHOME="\"/var/db/squidGuard\""  -Wall -c sgDb.c
sgDb.c: In function 'sgDbInit':
sgDb.c:192: error: incompatible type for argument 4 of 'Db->dbp->open'
sgDb.c:192: error: too many arguments to function 'Db->dbp->open'
sgDb.c:197: error: incompatible type for argument 4 of 'Db->dbp->open'
sgDb.c:197: error: too many arguments to function 'Db->dbp->open'
*** Error code 1
186c24f
@ccesario ccesario FreeBSD Compatible
Fix this
gcc -Wall -Werror -g -O2 -I/usr/local/include/db4 -I/usr/include  -DDEFAULT_CONFIGFILE="\"/usr/local/etc/squid/squidGuard.conf\""  -DEFAULT_LOGDIR="\"/var/log\""  -DDEFAULT_DBHOME="\"/var/db/squidGuard\""  -Wall -c sgRequest.c
sgRequest.c: In function 'parseUrl':
sgRequest.c:162: error: 'AF_INET' undeclared (first use in this function)
sgRequest.c:162: error: (Each undeclared identifier is reported only once
sgRequest.c:162: error: for each function it appears in.)
sgRequest.c:180: error: invalid application of 'sizeof' to incomplete type 'struct in6_addr' 
sgRequest.c:185: error: 'AF_INET6' undeclared (first use in this function)
*** Error code 1
d609988

@andihofmeister andihofmeister added a commit that referenced this pull request Aug 7, 2012

@andihofmeister andihofmeister Merge pull request #1 from ccesario/master
Fix check DB and FreeBSD compatibility
c10e642

@andihofmeister andihofmeister merged commit c10e642 into andihofmeister:master Aug 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment