[Xlibs] Xv needing X11/extensions/Xvlib.h (simple patch provided)

Jeremy C. Reed reed@reedmedia.net
Sun, 30 Nov 2003 00:05:29 -0800 (PST)


Xv fails to build.

  cc -DHAVE_CONFIG_H -I. -I. -I. -DXTHREADS -DXUSE_MTSAFE_API
  -I/usr/pkg/include -O2 -c Xv.c -Wp,-MD,.deps/Xv.TPlo  -fPIC -DPIC -o
  .libs/Xv.o
  In file included from Xv.c:54:
  Xvlibint.h:48: X11/extensions/Xvlib.h: No such file or directory
  gmake[1]: *** [Xv.lo] Error 1

I am using the libXv-2.2.1 tarball, and from looking at cvsweb, nothing
has changed.

I am curious: should X11/extensions/Xvlib.h be included with the
xextensions package instead?

Anyways, here is my fix:

--- Xvlibint.h.orig	Sat Nov 29 23:58:13 2003
+++ Xvlibint.h
@@ -45,7 +45,7 @@ SOFTWARE.

 #include <X11/Xlibint.h>
 #include <X11/extensions/Xvproto.h>
-#include <X11/extensions/Xvlib.h>
+#include "Xvlib.h"

 #if !defined(UNIXCPP)
 #define XvGetReq(name, req) \

   Jeremy C. Reed
   http://bsd.reedmedia.net/