On Fri, Sep 02, 2005 at 11:30:54AM +0200, Axel Thimm wrote:
> On Sun, Aug 28, 2005 at 12:38:51PM +0200, Hans Verkuil wrote:
> > On Sunday 28 August 2005 12:30, Adam Forsyth wrote:
> > > I had this same problem. stringify.h was in my kernel header / devel /
> > > build / whatever directories, but not /usr/include/linux/. Copying it
> > > over worked fine. Since this is not a kernel module, this is the
> > > correct behavior is it not? It shouldn't be looking in the kernel
> > > source for headers?
> > 
> > I included the ivtv-version.h header to be able to show against which 
> > driver 
> > version ivtvctl was compiled. ivtv-version.h used stringify.h and I was not 
> > aware that it wasn't installed in include/linux for everybody. I've removed 
> > the include and copied the stringify defines directly into ivtvctl.h. That 
> > should do it.
> 
> Could you post a patch for 0.3.7k? Or perhaps release a 0.3.7l? Thanks!

Attached is the patch extracted from svn. Use with -p2.
-- 
Axel.Thimm at ATrpms.net
--- ivtv/trunk/utils/ivtvctl.c  (revision 1277)
+++ ivtv/trunk/utils/ivtvctl.c  (revision 1278)
@@ -35,12 +35,15 @@
 #include <sys/time.h>
 #include <math.h>
 #include <linux/types.h>
-#include <linux/stringify.h>
 
 #include "videodev2.h"
 
 #define IVTV_INTERNAL
 #include "ivtv.h"
+
+#define __stringify_1(x)       #x
+#define __stringify(x)         __stringify_1(x)
+
 #include "ivtv-version.h"
 
 /* Options */

Attachment: pgpEVi2HoqOes.pgp
Description: PGP signature

Reply via email to