mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: mru@kth.se (Måns Rullgård)
To: linux-kernel@vger.kernel.org
Subject: video4linux headers
Date: Wed, 17 Dec 2003 19:02:37 +0100	[thread overview]
Message-ID: <yw1xvfofnwzm.fsf@kth.se> (raw)


When compiling any program that uses video4linux under linux
2.6.0-testANY, I always get these errors:

In file included from /usr/include/linux/videodev2.h:16,
/usr/include/linux/time.h:9: redefinition of `struct timespec'
/usr/include/linux/time.h:15: redefinition of `struct timeval'
/usr/include/time.h:160: redefinition of `struct itimerspec'

Am I doing something terribly wrong?  Simply placing an
#include <linux/time> in videodev2.h under #ifdef __KERNEL__ seems to
get rid of the compiler errors, though I'm sure that's not the proper
solution.

-- 
Måns Rullgård
mru@kth.se

                 reply	other threads:[~2003-12-17 18:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yw1xvfofnwzm.fsf@kth.se \
    --to=mru@kth.se \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome