public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* linux/atm_zatm.h not really usable in userspace since cf00713a655d3019be7faa184402f16c43a0fed3
@ 2016-10-15 12:05 Pascal Terjan
  2016-10-15 14:09 ` Mikko Rapeli
  0 siblings, 1 reply; 5+ messages in thread
From: Pascal Terjan @ 2016-10-15 12:05 UTC (permalink / raw)
  To: Mikko Rapeli, David S. Miller; +Cc: netdev

It is no longer possible to include <linux/atm_zatm.h> + userspace
headers using time, for example  <stdlib.h>, this broke for example
the build of linux-atm.

Reproducer:

$ cat test.c
#include <linux/atm_zatm.h>
#include <stdlib.h>

$ gcc -c test.c
In file included from /usr/include/sys/select.h:43:0,
                 from /usr/include/sys/types.h:219,
                 from /usr/include/stdlib.h:314,
                 from test.c:2:
/usr/include/time.h:120:8: error: redefinition of 'struct timespec'
 struct timespec
        ^
In file included from /usr/include/linux/atm_zatm.h:17:0,
                 from test.c:1:
/usr/include/linux/time.h:9:8: note: originally defined here
 struct timespec {
        ^
In file included from /usr/include/sys/select.h:45:0,
                 from /usr/include/sys/types.h:219,
                 from /usr/include/stdlib.h:314,
                 from test.c:2:
/usr/include/bits/time.h:30:8: error: redefinition of 'struct timeval'
 struct timeval
        ^
In file included from /usr/include/linux/atm_zatm.h:17:0,
                 from test.c:1:
/usr/include/linux/time.h:15:8: note: originally defined here
 struct timeval {
        ^

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-15 15:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-15 12:05 linux/atm_zatm.h not really usable in userspace since cf00713a655d3019be7faa184402f16c43a0fed3 Pascal Terjan
2016-10-15 14:09 ` Mikko Rapeli
2016-10-15 14:33   ` Pascal Terjan
2016-10-15 15:10     ` Mikko Rapeli
2016-10-15 15:14       ` Pascal Terjan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox