socket_compat.h improvements to always have struct osmo_sockaddr (details)
remove references to define EMBEDDED in public headers (details)
logging: Move log target file to its own file (details)
Commit
b3171b0851d46fdf3453ff991583ab99ae6dfde8
by Pau Espin Pedrol
socket_compat.h improvements to always have struct osmo_sockaddr available
Having a #if (!EMBEDDED) based on compiler defined variable is not a good idea. Instead, add minimal sys/socket.h and netient/in.h to always have the definition of struct osmo_sockaddr available.
Commit
ef1484af3273f070604ada30d138c26121936d59
by Pau Espin Pedrol
remove references to define EMBEDDED in public headers
It's not a good idea to base opt-in/out of code in public headers based on some specific non-standard define being set at compile time when calling the compiler. Get rid of those references; Now that osmocom/core/socket.h can be included thanks to improved osmocom/core/socket_compat.h, it shouldn't be a problem.
Commit
ede60a131a607b52afbae951a92497ccb620e473
by Pau Espin Pedrol
logging: Move log target file to its own file
We already have all other log_target implementations each on its own file. Move the file (and stderr, a specific case of file) into its own file too, properly separating most file-specific logic from general logging logic.