Eugene, You should be including the kernel header <linux/time.h> in a driver rather than the user glibc header <sys/time.h>.
I checked: 'lbolt' does not exist in either. If you need time.h include it before stream.h as follows: #include <linux/time.h> #include <sys/stream.h> --brian On Wed, 04 Jun 2003, Eugene LiS User wrote: > I'm porting some legacy driver to LiS/Linux. > > It is LiS 2.15 and Redhat Linux 7.2 > # uname -a > Linux PC2 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown > > Driver uses 'lbolt' kernel variable. > The variable is prototyped in the /usr/include/sys/time.h > > Here is the test.c program: > > # cat test.c > #include <sys/stream.h> > #include <sys/time.h> > > When I compile that program > I get the following errors: > > > # /usr/bin/cc -I/usr/src/LiS/include -D__KERNEL__ -DLINUX -c test.c > > In file included from /usr/include/sys/time.h:26, > from test.c:2: > /usr/include/time.h:70: warning: redefinition of `time_t' > /usr/include/linux/types.h:69: warning: `time_t' previously declared here > In file included from /usr/include/sys/time.h:28, > from test.c:2: > /usr/include/bits/time.h:68: redefinition of `struct timeval' > In file included from /usr/include/sys/time.h:30, > from test.c:2: > /usr/include/sys/select.h:38: conflicting types for `sigset_t' > /usr/include/asm/signal.h:21: previous declaration of `sigset_t' > In file included from /usr/include/sys/select.h:44, > from /usr/include/sys/time.h:30, > from test.c:2: > /usr/include/time.h:107: redefinition of `struct timespec' > In file included from /usr/include/sys/time.h:30, > from test.c:2: > /usr/include/sys/select.h:49: warning: redefinition of `suseconds_t' > /usr/include/linux/types.h:22: warning: `suseconds_t' previously > declared here > /usr/include/sys/select.h:74: conflicting types for `fd_set' > /usr/include/linux/types.h:13: previous declaration of `fd_set' > In file included from test.c:2: > /usr/include/sys/time.h:57: redefinition of `struct timezone' > /usr/include/sys/time.h:94: parse error before `0' > /usr/include/sys/time.h:108: redefinition of `struct itimerval' > > > I probably missing something simple. > > Some flags, include paths? > > > Thanks for you help, > > -- > Eugene > > > __________________________________________________________________ > McAfee VirusScan Online from the Netscape Network. > Comprehensive protection for your entire computer. Get your free trial today! > http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 > > Get AOL Instant Messenger 5.1 free of charge. Download Now! > http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 > > _______________________________________________ > Linux-streams mailing list > [EMAIL PROTECTED] > http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams -- Brian F. G. Bidulock � The reasonable man adapts himself to the � [EMAIL PROTECTED] � world; the unreasonable one persists in � http://www.openss7.org/ � trying to adapt the world to himself. � � Therefore all progress depends on the � � unreasonable man. -- George Bernard Shaw � _______________________________________________ Linux-streams mailing list [EMAIL PROTECTED] http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams
