miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compiling on FreeBSD with EVENTS support

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
Radiolab



Joined: 03 Jun 2011
Posts: 5
Location: Moscow

PostPosted: Tue Jun 07, 2011 10:54 pm    Post subject: Compiling on FreeBSD with EVENTS support Reply with quote

Hello,

Freebsd 8.2
gcc version 4.2.1

When I try compile miniupnpd with uncommented in config.h,

Code:
#define ENABLE_EVENTS


compilation stops with error:


Code:
cc -pipe -Wall -Os -c -o miniupnpd.o miniupnpd.c
cc -pipe -Wall -Os -c -o upnphttp.o upnphttp.c
cc -pipe -Wall -Os -c -o upnpdescgen.o upnpdescgen.c
In file included from upnpdescgen.c:15:
upnpredirect.h:74: error: expected specifier-qualifier-list before 'u_int64_t'
*** Error code 1
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1477

PostPosted: Wed Jun 08, 2011 9:06 pm    Post subject: Reply with quote

try to add
Code:
#include <sys/types.h>

on top of the upnpdescgen.c file
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Radiolab



Joined: 03 Jun 2011
Posts: 5
Location: Moscow

PostPosted: Thu Jun 09, 2011 3:13 pm    Post subject: Reply with quote

Thank you, now it compiles successfully.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.