Conversation
|
I think @kaspar030 has a far stronger opinion than me on that. |
|
[ |
|
|
||
| #include <stdint.h> | ||
|
|
||
| #include "net/af.h" |
There was a problem hiding this comment.
@kaspar030 @haukepetersen would you be okay with
#ifdef RIOT_VERSION
#include "net/af.h"
#else
#include <sys/socket.h>
#endif?
|
|
Maybe an even better (networking sub-layer independent) solution. Will fix for GNRC. |
|
@kaspar030: agree, makes sense. So I close this PR in favor of that solution. |
When using sock, it is very very probable, that one needs to define the used family (e.g.
AF_INET6orAF_INET). Including this header insock.h'packages' this header with sock, so that one does not need to explicitly include it when using sock.