public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [linux-dvb] problems with smscoreapi
@ 2008-07-13  8:24 Johannes Weber
  2008-07-14  4:35 ` Michael Krufky
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Weber @ 2008-07-13  8:24 UTC (permalink / raw)
  To: linux-dvb

 CC [M]  /root/v4l-dvb/v4l/smscoreapi.o
/root/v4l-dvb/v4l/smscoreapi.c: In function 'smscore_detect_mode':
/root/v4l-dvb/v4l/smscoreapi.c:689: error: 'uintptr_t' undeclared (first use in this function)
/root/v4l-dvb/v4l/smscoreapi.c:689: error: (Each undeclared identifier is reported only once
/root/v4l-dvb/v4l/smscoreapi.c:689: error: for each function it appears in.)
/root/v4l-dvb/v4l/smscoreapi.c: In function 'smscore_set_device_mode':
/root/v4l-dvb/v4l/smscoreapi.c:820: error: 'uintptr_t' undeclared (first use in this function)
make[5]: *** [/root/v4l-dvb/v4l/smscoreapi.o] Error 1
make[4]: *** [_module_/root/v4l-dvb/v4l] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.22.18-0.2-obj/i386/default'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/v4l-dvb/v4l'
make: *** [all] Error 2

_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220


_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

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

* Re: [linux-dvb] problems with smscoreapi
  2008-07-13  8:24 [linux-dvb] problems with smscoreapi Johannes Weber
@ 2008-07-14  4:35 ` Michael Krufky
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Krufky @ 2008-07-14  4:35 UTC (permalink / raw)
  To: Johannes Weber; +Cc: linux-dvb

Johannes Weber wrote:
>  CC [M]  /root/v4l-dvb/v4l/smscoreapi.o
> /root/v4l-dvb/v4l/smscoreapi.c: In function 'smscore_detect_mode':
> /root/v4l-dvb/v4l/smscoreapi.c:689: error: 'uintptr_t' undeclared (first use in this function)
> /root/v4l-dvb/v4l/smscoreapi.c:689: error: (Each undeclared identifier is reported only once
> /root/v4l-dvb/v4l/smscoreapi.c:689: error: for each function it appears in.)
> /root/v4l-dvb/v4l/smscoreapi.c: In function 'smscore_set_device_mode':
> /root/v4l-dvb/v4l/smscoreapi.c:820: error: 'uintptr_t' undeclared (first use in this function)
> make[5]: *** [/root/v4l-dvb/v4l/smscoreapi.o] Error 1
> make[4]: *** [_module_/root/v4l-dvb/v4l] Error 2
> make[3]: *** [modules] Error 2
> make[2]: *** [modules] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.6.22.18-0.2-obj/i386/default'
> make[1]: *** [default] Error 2
> make[1]: Leaving directory `/root/v4l-dvb/v4l'
> make: *** [all] Error 2


Please try this patch:

# HG changeset patch
# User Michael Krufky <mkrufky@linuxtv.org>
# Date 1216010022 14400
# Node ID 9ccf2533792a1e91988ae827190d1472f96e1ba4
# Parent  d49b1e522b37ecdbe659b234f156788216216b11
sms1xxx: fix compat for kernel 2.6.22 and earlier

From: Michael Krufky <mkrufky@linuxtv.org>

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>

diff -r d49b1e522b37 -r 9ccf2533792a linux/drivers/media/dvb/siano/smscoreapi.h
--- a/linux/drivers/media/dvb/siano/smscoreapi.h	Sat Jul 12 18:58:24 2008 -0400
+++ b/linux/drivers/media/dvb/siano/smscoreapi.h	Mon Jul 14 00:33:42 2008 -0400
@@ -29,7 +29,7 @@
 #include <linux/scatterlist.h>
 #include <linux/types.h>
 #include <asm/page.h>
-
+#include "compat.h"
 #include "dmxdev.h"
 #include "dvbdev.h"
 #include "dvb_demux.h"
diff -r d49b1e522b37 -r 9ccf2533792a v4l/compat.h
--- a/v4l/compat.h	Sat Jul 12 18:58:24 2008 -0400
+++ b/v4l/compat.h	Mon Jul 14 00:33:42 2008 -0400
@@ -210,4 +210,8 @@ static inline struct proc_dir_entry *pro
 
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
+typedef unsigned long uintptr_t;
 #endif
+
+#endif

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

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

end of thread, other threads:[~2008-07-14  4:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-13  8:24 [linux-dvb] problems with smscoreapi Johannes Weber
2008-07-14  4:35 ` Michael Krufky

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