microdc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microdc-devel] compilation error under freebsd 6


From: Jakub Jankowski
Subject: Re: [microdc-devel] compilation error under freebsd 6
Date: Wed, 11 Jan 2006 23:06:19 +0100 (CET)

On 2006-01-11, address@hidden wrote:

FreeBSD 6.0-STABLE FreeBSD 6.0-STABLE #0: Tue Jan 10 21:09:34 MSK 2006
with custom kernel of course.
[...]
Compilation either 0.11.0 or 0.11.1 or with readline 5 from ports
gives me same errors as you can see below.
[...]
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../lib -I/usr/local/include -Wall 
-D_THREAD_SAFE -pthread -g -O2 -MT util.o -MD -MP -MF ".deps/util.Tpo" -c -o 
util.o util.c; \
then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 
1; fi
util.c:67: warning: "struct sockaddr_in" declared inside parameter list
util.c:67: warning: its scope is only this definition or declaration, which is 
probably not what you want
[...]
I'm not a coder, so I don't know what to do next.
Any help will be appreciated.

Try including <netinet/in.h> before <arpa/inet.h>.

HTH

--
Jakub Jankowski     | http://s.atn.pl/         | Real programmers don't
Sysadm, programmer  | http://www.slackware.pl/ | comment their code.
address@hidden  | http://www.gnugadu.org/  | It was hard to write, it
as shasta on IRCnet | http://www.irssi.org/    | should be hard to understand.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]