diff options
author | midipix <writeonce@midipix.org> | 2018-12-16 18:28:47 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-18 20:38:41 -0500 |
commit | d856581aa9910c0d4162e0f78e175043cf55a2bd (patch) | |
tree | daf4f89ab42e4f1c5e395383b1008498e370a6c9 /profiles/osapi | |
parent | fbb5430cd995284a15df0264289a3a5c033a0746 (diff) | |
download | sbpython3-d856581aa9910c0d4162e0f78e175043cf55a2bd.tar.bz2 sbpython3-d856581aa9910c0d4162e0f78e175043cf55a2bd.tar.xz |
osapi: midipix.h: prevent the AF_CAN macro from misleading python.
Diffstat (limited to 'profiles/osapi')
-rw-r--r-- | profiles/osapi/midipix.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/profiles/osapi/midipix.h b/profiles/osapi/midipix.h index 300e361..90bf421 100644 --- a/profiles/osapi/midipix.h +++ b/profiles/osapi/midipix.h @@ -24,4 +24,8 @@ #define GRND_RANDOM (0x02) #endif +/* sockets: AF_CAN (silly, but patch-free:-)) */ +#include <sys/socket.h> +#undef AF_CAN + #endif |