[lkml]   [2005]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: Linux 2.6.15-rc6
El Sun, 18 Dec 2005 16:47:33 -0800 (PST),
Linus Torvalds <> escribió:

> Matt Helsley:
> Add getnstimestamp function
> Add timestamp field to process events

This last change (5650b736ad328f7f3e4120e8790940289b8ac144) "broke" a
small process event connector test program (the one matt posted here, slighty modified) due to a headers
conflict. I think it's due to my setup, but...

--- a/include/linux/cn_proc.h
+++ b/include/linux/cn_proc.h
@@ -26,6 +26,7 @@
#define CN_PROC_H
#include <linux/types.h>
+#include <linux/time.h>
#include <linux/connector.h>

and the program:
31: #include <stdio.h>
32: #include <stdlib.h>
33: #include <string.h>
34: #include <unistd.h>
36: #include <sys/socket.h>
37: #include <sys/types.h>
39: #include <linux/connector.h>
40: #include <linux/netlink.h>
41: #include <linux/cn_proc.h>

This gives me
diego@estel 2J2 ~/kernel # LC_ALL='C' make
gcc -I 2.6/include test_cn_proc.c -o test_cn_proc
In file included from 2.6/include/linux/cn_proc.h:29,
from test_cn_proc.c:41:
2.6/include/linux/time.h:12: error: redefinition of 'struct timespec'
2.6/include/linux/time.h:18: error: redefinition of 'struct timeval'
In file included from 2.6/include/linux/cn_proc.h:29,
from test_cn_proc.c:41:
2.6/include/linux/time.h:121:1: warning: "FD_SET" redefined
In file included from /usr/include/sys/types.h:216,
from /usr/include/stdlib.h:433,
from test_cn_proc.c:32:
/usr/include/sys/select.h:93:1: warning: this is the location of the previous definitio

(My "debian testing" box supplies an old and apparently incompatible
version of connector.h so I had to point gcc to kernel's headers directly)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-12-19 02:34    [W:0.211 / U:1.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site