View previous topic :: View next topic |
Author |
Message |
Radiolab
Joined: 03 Jun 2011 Posts: 5 Location: Moscow
|
Posted: Tue Jun 07, 2011 10:54 pm Post subject: Compiling on FreeBSD with EVENTS support |
|
|
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 |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Wed Jun 08, 2011 9:06 pm Post subject: |
|
|
try to add
Code: | #include <sys/types.h> |
on top of the upnpdescgen.c file _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
Radiolab
Joined: 03 Jun 2011 Posts: 5 Location: Moscow
|
Posted: Thu Jun 09, 2011 3:13 pm Post subject: |
|
|
Thank you, now it compiles successfully. |
|
Back to top |
|
 |
|