zhengzkkai / opkg

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

Fix opkg compilation on Darwin #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In order to use opkg on the build host, we have to support it on BSD like 
systems, the attached patch will fix a compilation issue on OSX.

- libgen.h must be included for basename(), dirname() and friends
- libopkg_test.c needs a declaration for opkg_state_changes or linking against 
extern int will fail

Tested on FreeBSD 8.0, OSX Snow Leopard and Ubuntu 9.04.

Original issue reported on code.google.com by goo...@wwsnet.net on 12 Sep 2010 at 10:31

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by goo...@wwsnet.net on 13 Sep 2010 at 12:26

GoogleCodeExporter commented 9 years ago
Added in r560

Original comment by goo...@wwsnet.net on 13 Sep 2010 at 1:17