Skip to content
Success

Changes

Summary

  1. osmo_io.h: add forward declaration of struct osmo_sockaddr (details)
Commit b1820f52338d11d280e1fd9b66af667ff6746ae8 by Pau Espin Pedrol
osmo_io.h: add forward declaration of struct osmo_sockaddr

During amr-none-eabi build (EMBEDDED defined), including
<osmocom/core/socket.h> includes a mostly empty file, since that file is
guarded by "#if (!EMBEDDED)" because sys/socket.h is not available
there. As a result, if somebody includes osmo_io.h when EMBEDDED is set,
there will be no declaration of struct osmo_sockaddr used in declared
APIs. Add a forward declaration to fix it.

Change-Id: Id7db4b081752a1034b95a92b4850484a26ec11c6
The file was modifiedinclude/osmocom/core/osmo_io.h