Mac OS X - include file patch

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Lars Immisch lars at ibp.de
Wed May 20 23:19:12 UTC 2009


Hi,

attached is a patch for Mac OS X. It fixes #include annoyances; some 
possibly general.

With this patch, openbsc should compile on OS X (but will not link yet).

- OS X has no malloc.h (malloc is in stdlib.h - as per POSIX/OpenGroup)
- vty/buffer.h and vty/command.h need sys/types.h (looks harmless to me)
- mISDNif.h explicitly wants <linux/types.h> etc., but the declarations 
in mISNif.h fairly generic. I have replaced <linux/types.h> with 
<sys/types.h>, unless "linux" is defined (which is defined by gcc).

Regarding linking:

OS X has no -lcrypt, but the openbsc binaries link without -lcrypt. I'll 
have to restore my autoconf knowledge from cryogenic storage and then 
come up with another patch.

- Lars
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: osx.patch
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20090521/bdcaa2ef/attachment.ksh>


More information about the OpenBSC mailing list