This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: v4l2-ctl: Explicitely compare struct timespec members on (k)FreeBSD
Author:  Gregor Jasny <[email protected]>
Date:    Sun Feb 19 18:42:56 2012 +0100

Signed-off-by: Gregor Jasny <[email protected]>
(cherry picked from commit 5785fecdafe5cb40315b07e2e48fde0fb2a7c172)

Signed-off-by: Gregor Jasny <[email protected]>

 utils/v4l2-ctl/ivtv-ctl.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=0c8ee35041e1828328e81fc30df822a3d9ef8e00

diff --git a/utils/v4l2-ctl/ivtv-ctl.c b/utils/v4l2-ctl/ivtv-ctl.c
index dd4289b..07801b6 100644
--- a/utils/v4l2-ctl/ivtv-ctl.c
+++ b/utils/v4l2-ctl/ivtv-ctl.c
@@ -495,7 +495,11 @@ int main(int argc, char **argv)
                        if (ioctl(fd, VIDEO_GET_EVENT, &ev) < 0) {
                                fprintf(stderr, "ioctl: VIDEO_GET_EVENT 
failed\n");
                                break;
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+                       } else if (ev.timestamp.tv_sec == 0 && 
ev.timestamp.tv_nsec == 0) {
+#else
                        } else if (ev.timestamp == 0) {
+#endif
                                unsigned long long pts = 0, frame = 0;
                                struct timeval tv;
                                gettimeofday(&tv, NULL);

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to