[CMake] using arm toolchain and having issues with linux socket can
Gunter, Walter E
Walter.Gunter at dematic.com
Sun Sep 18 10:59:37 EDT 2016
Just checked the contents of:
Sys/socket.h
And there is a line that references the bits/socket.h
But AF_CAN and PF_CAN are not defined in either.
They are defined in my linux/socket.h
-----Original Message-----
From: Rolf Eike Beer [mailto:eike at sf-mail.de]
Sent: Saturday, September 17, 2016 1:19 AM
To: Gunter, Walter E
Cc: cmake at cmake.org
Subject: Re: [CMake] using arm toolchain and having issues with linux socket can
Am Freitag, 16. September 2016, 22:54:25 schrieb Gunter, Walter E:
> Ah..got ya.
> There are two in my toolchain:
> Sys/socket.h
> Linux/socket.h
>
> I couldn't find AF_CAN or PF_CAN defined in the sys one, but it is in
> the linux.
I included it, but still getting the error when building that it
> can't find it.
I already told you it's sys/socket.h. In fact it's bits/socket.h, but the
bits/* stuff should never be included directly. But it is included in sys/socket.h, so just use this.
Eike
More information about the CMake
mailing list