Date: Sat, 24 Sep 2005 20:38:12 +0900 From: Tod McQuillin <devin@spamcop.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: nobutaka@FreeBSD.org Subject: ports/86527: [PATCH] multimedia/libxine: [fix build on 4.x] Message-ID: <E1EJ8M8-0004qQ-AN@mail.distalzou.net> Resent-Message-ID: <200509241140.j8OBeRqN067600@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 86527 >Category: ports >Synopsis: [PATCH] multimedia/libxine: [fix build on 4.x] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Sep 24 11:40:27 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Tod McQuillin >Release: FreeBSD 4.11-STABLE i386 >Organization: >Environment: System: FreeBSD plexi.pun-pun.prv 4.11-STABLE FreeBSD 4.11-STABLE #1: Wed Aug 10 22:19:18 JST 2005 >Description: The attached patches allow libxine 1.1.0 to be built successfully on FreeBSD 4.x. Added file(s): - files/patch-src:video_out:video_out_xv.c - files/patch-src:xine-utils:xineutils.h Port maintainer (nobutaka@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- libxine-1.1.0.patch begins here --- Index: files/patch-src:video_out:video_out_xv.c =================================================================== RCS file: files/patch-src:video_out:video_out_xv.c diff -N files/patch-src:video_out:video_out_xv.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-src:video_out:video_out_xv.c 24 Sep 2005 09:12:10 -0000 @@ -0,0 +1,13 @@ +--- src/video_out/video_out_xv.c~ Sun Mar 6 18:55:35 2005 ++++ src/video_out/video_out_xv.c Sat Sep 24 18:11:39 2005 +@@ -47,7 +47,9 @@ + #if defined (__SVR4) && defined (__sun) + # include <sys/int_types.h> + #else +-# include <stdint.h> ++# ifdef HAVE_STDINT_H ++# include <stdint.h> ++# endif + #endif + + #include <sys/types.h> Index: files/patch-src:xine-utils:xineutils.h =================================================================== RCS file: files/patch-src:xine-utils:xineutils.h diff -N files/patch-src:xine-utils:xineutils.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-src:xine-utils:xineutils.h 24 Sep 2005 09:53:02 -0000 @@ -0,0 +1,73 @@ +--- src/xine-utils/xineutils.h~ Sun Dec 12 22:51:30 2004 ++++ src/xine-utils/xineutils.h Sat Sep 24 18:52:37 2005 +@@ -1041,6 +1041,70 @@ + */ + int xine_monotonic_clock(struct timeval *tv, struct timezone *tz); + ++/* FreeBSD 4.x lacks these */ ++ ++#ifndef PRId64 ++#define PRId64 "lld" ++#endif ++ ++#ifndef PRIdMAX ++#define PRIdMAX "lld" ++#endif ++ ++#ifndef PRIx8 ++#define PRIx8 "x" ++#endif ++ ++#ifndef PRIx16 ++#define PRIx16 "x" ++#endif ++ ++#ifndef PRIx32 ++#define PRIx32 "x" ++#endif ++ ++#ifndef PRIx64 ++#define PRIx64 "llx" ++#endif ++ ++#ifndef PRIxMAX ++#define PRIxMAX "llx" ++#endif ++ ++#ifndef SCNdMAX ++#define SCNdMAX "lld" ++#endif ++ ++#ifndef INT8_MIN ++#define INT8_MIN CHAR_MIN ++#endif ++ ++#ifndef INT8_MAX ++#define INT8_MAX CHAR_MAX ++#endif ++ ++#ifndef INT16_MIN ++#define INT16_MIN SHRT_MIN ++#endif ++ ++#ifndef INT16_MAX ++#define INT16_MAX SHRT_MAX ++#endif ++ ++#ifndef INT32_MIN ++#define INT32_MIN INT_MIN ++#endif ++ ++#ifndef INT32_MAX ++#define INT32_MAX INT_MAX ++#endif ++ ++#include <sys/param.h> ++#if __FreeBSD_version < 500000 ++ typedef u_quad_t uintmax_t; ++ typedef quad_t intmax_t; ++#endif ++ + #ifdef __cplusplus + } + #endif --- libxine-1.1.0.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1EJ8M8-0004qQ-AN>