mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
HPUX porting fixes - patch by Gansser, Martin <MGansser@rand.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6957 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
aea5020900
commit
c30e50123a
22
configure
vendored
22
configure
vendored
@ -57,6 +57,7 @@ issystem() {
|
|||||||
}
|
}
|
||||||
linux() { issystem "Linux" ; return "$?" ; }
|
linux() { issystem "Linux" ; return "$?" ; }
|
||||||
sunos() { issystem "SunOS" ; return "$?" ; }
|
sunos() { issystem "SunOS" ; return "$?" ; }
|
||||||
|
hpux() { issystem "HP-UX" ; return "$?" ; }
|
||||||
irix() { issystem "IRIX" ; return "$?" ; }
|
irix() { issystem "IRIX" ; return "$?" ; }
|
||||||
cygwin() { issystem "CYGWIN" ; return "$?" ; }
|
cygwin() { issystem "CYGWIN" ; return "$?" ; }
|
||||||
freebsd() { issystem "FreeBSD" ; return "$?" ; }
|
freebsd() { issystem "FreeBSD" ; return "$?" ; }
|
||||||
@ -309,6 +310,9 @@ if test -z "$_target" ; then
|
|||||||
IRIX*)
|
IRIX*)
|
||||||
system_name=IRIX
|
system_name=IRIX
|
||||||
;;
|
;;
|
||||||
|
HP-UX*)
|
||||||
|
system_name=HP-UX
|
||||||
|
;;
|
||||||
[cC][yY][gG][wW][iI][nN]*)
|
[cC][yY][gG][wW][iI][nN]*)
|
||||||
system_name=CYGWIN
|
system_name=CYGWIN
|
||||||
;;
|
;;
|
||||||
@ -340,6 +344,7 @@ if test -z "$_target" ; then
|
|||||||
ppc) host_arch=ppc ;;
|
ppc) host_arch=ppc ;;
|
||||||
alpha) host_arch=alpha ;;
|
alpha) host_arch=alpha ;;
|
||||||
sparc*) host_arch=sparc ;;
|
sparc*) host_arch=sparc ;;
|
||||||
|
9000*) host_arch=hppa ;;
|
||||||
arm*) host_arch=arm ;;
|
arm*) host_arch=arm ;;
|
||||||
s390) host_arch=s390 ;;
|
s390) host_arch=s390 ;;
|
||||||
s390x) host_arch=s390x ;;
|
s390x) host_arch=s390x ;;
|
||||||
@ -815,6 +820,15 @@ EOF
|
|||||||
_mcpu=''
|
_mcpu=''
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
hppa)
|
||||||
|
_def_arch='#define ARCH_PA_RISC 1'
|
||||||
|
_target_arch='TARGET_ARCH_PA_RISC = yes'
|
||||||
|
iproc='PA-RISC'
|
||||||
|
proc=''
|
||||||
|
_march=''
|
||||||
|
_mcpu=''
|
||||||
|
;;
|
||||||
|
|
||||||
s390)
|
s390)
|
||||||
_def_arch='#define ARCH_S390 1'
|
_def_arch='#define ARCH_S390 1'
|
||||||
_target_arch='TARGET_ARCH_S390 = yes'
|
_target_arch='TARGET_ARCH_S390 = yes'
|
||||||
@ -3987,6 +4001,10 @@ if darwin ; then
|
|||||||
# use gnu style cpp on Darwin
|
# use gnu style cpp on Darwin
|
||||||
CFLAGS="$CFLAGS -no-cpp-precomp -DSYS_DARWIN"
|
CFLAGS="$CFLAGS -no-cpp-precomp -DSYS_DARWIN"
|
||||||
fi
|
fi
|
||||||
|
if hpux ; then
|
||||||
|
# use flag for HPUX missing setenv()
|
||||||
|
CFLAGS="$CFLAGS -DHPUX"
|
||||||
|
fi
|
||||||
# Thread support
|
# Thread support
|
||||||
if linux ; then
|
if linux ; then
|
||||||
CFLAGS="$CFLAGS -D_REENTRANT"
|
CFLAGS="$CFLAGS -D_REENTRANT"
|
||||||
@ -3994,7 +4012,6 @@ elif bsd ; then
|
|||||||
# FIXME bsd needs this so maybe other OS'es
|
# FIXME bsd needs this so maybe other OS'es
|
||||||
CFLAGS="$CFLAGS -D_THREAD_SAFE"
|
CFLAGS="$CFLAGS -D_THREAD_SAFE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 64 bit file offsets?
|
# 64 bit file offsets?
|
||||||
if test "$_largefiles" = yes || freebsd ; then
|
if test "$_largefiles" = yes || freebsd ; then
|
||||||
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||||
@ -4487,6 +4504,9 @@ $_def_vcd
|
|||||||
#ifdef sun
|
#ifdef sun
|
||||||
#define DEFAULT_CDROM_DEVICE "/vol/dev/aliases/cdrom0"
|
#define DEFAULT_CDROM_DEVICE "/vol/dev/aliases/cdrom0"
|
||||||
#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
|
#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
|
||||||
|
#elif defined(HPUX)
|
||||||
|
#define DEFAULT_CDROM_DEVICE "/dev/cdrom:"
|
||||||
|
#define DEFAULT_DVD_DEVICE "/dev/dvd"
|
||||||
#elif defined(WIN32)
|
#elif defined(WIN32)
|
||||||
#define DEFAULT_CDROM_DEVICE "D:"
|
#define DEFAULT_CDROM_DEVICE "D:"
|
||||||
#define DEFAULT_DVD_DEVICE "D:"
|
#define DEFAULT_DVD_DEVICE "D:"
|
||||||
|
@ -95,8 +95,8 @@ static int read_buffer(unsigned char* data,int len){
|
|||||||
|
|
||||||
// end ring buffer stuff
|
// end ring buffer stuff
|
||||||
|
|
||||||
#if defined(sun) && defined(__svr4__)
|
#if defined(HPUX) || defined(sun) && defined(__svr4__)
|
||||||
/* setenv is missing on solaris */
|
/* setenv is missing on solaris and HPUX */
|
||||||
static void setenv(const char *name, const char *val, int _xx)
|
static void setenv(const char *name, const char *val, int _xx)
|
||||||
{
|
{
|
||||||
int len = strlen(name) + strlen(val) + 2;
|
int len = strlen(name) + strlen(val) + 2;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "bswap.h"
|
#include "bswap.h"
|
||||||
|
#define quad quad_m
|
||||||
|
|
||||||
#define LE_16(x) (le2me_16(*(unsigned short *)(x)))
|
#define LE_16(x) (le2me_16(*(unsigned short *)(x)))
|
||||||
|
|
||||||
|
@ -143,8 +143,8 @@ static vo_info_t vo_info =
|
|||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
//#include <SDL/SDL_syswm.h>
|
//#include <SDL/SDL_syswm.h>
|
||||||
|
|
||||||
#if defined(sun) && defined(__svr4__)
|
#if defined(HPUX) || defined(sun) && defined(__svr4__)
|
||||||
/* setenv is missing on solaris */
|
/* setenv is missing on solaris and HPUX */
|
||||||
static void setenv(const char *name, const char *val, int _xx)
|
static void setenv(const char *name, const char *val, int _xx)
|
||||||
{
|
{
|
||||||
int len = strlen(name) + strlen(val) + 2;
|
int len = strlen(name) + strlen(val) + 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user