Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Steve Lhomme
VLC
Commits
6afaa28e
Commit
6afaa28e
authored
Jun 10, 2020
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: mpg123: always apply the Android file size patch
This patch is upstreamed so it doesn't impact other platforms.
parent
909a655d
Pipeline
#18706
canceled with stage
in 54 minutes and 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
15 deletions
+42
-15
contrib/src/mpg123/0003-fix-lfs_alias_t-type-for-Android.patch
...ib/src/mpg123/0003-fix-lfs_alias_t-type-for-Android.patch
+42
-13
contrib/src/mpg123/rules.mak
contrib/src/mpg123/rules.mak
+0
-2
No files found.
contrib/src/mpg123/0003-fix-lfs_alias_t-type-for-Android.patch
View file @
6afaa28e
From
29604faf999056eb1c5e8e934ef9ceee472c78de
Mon Sep 17 00:00:00 2001
From
08d3465548263857d194947a8e17dafe62800a80
Mon Sep 17 00:00:00 2001
From: Steve Lhomme <robux4@ycbcr.xyz>
Date: Mon, 25 May 2020 12:46:56 +0200
Subject: [PATCH 3/3] fix lfs_alias_t type for Android
---
configure.ac |
5 +++--
ports/cmake/src/CMakeLists.txt | 4 ++++
2 files changed,
7 insertions(+), 2 deletions(-
)
configure.ac |
20 ++++++++++++++++++++
ports/cmake/src/CMakeLists.txt |
4 ++++
2 files changed,
24 insertions(+
)
diff --git a/configure.ac b/configure.ac
index c494221..
f22047e
100644
index c494221..
4fc0e36
100644
--- a/configure.ac
+++ b/configure.ac
@@ -1158,6 +1158,7 @@
AC_CHECK_TYPE(uint16_t, unsigned short)
@@ -159,6 +159,7 @@
fi
dnl We need the windows header also for checking the module mechanism.
AC_CHECK_HEADERS([windows.h])
+android_build=no
case "$host" in
*-*-mingw*)
win32=yes
@@ -180,6 +181,21 @@
case "$host" in
AC_DEFINE( [WINDOWS_UWP], 1, [Windows UWP build] )
fi
;;
+ linux*)
+ dnl Android is linux, but a bit different
+ AC_MSG_CHECKING([for an Android system])
+ AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
+ [[#ifndef __ANDROID__
+ # error Not Android
+ #endif
+ ]],[[;]])
+ ],[
+ android_build=yes
+ AC_MSG_RESULT([yes])
+ ],[
+ AC_MSG_RESULT([no])
+ ])
+ ;;
*)
win32=no
;;
@@ -1158,6 +1174,7 @@
AC_CHECK_TYPE(uint16_t, unsigned short)
AC_CHECK_SIZEOF(size_t,4)
AC_CHECK_SIZEOF(ssize_t,4)
AC_CHECK_SIZEOF(off_t,4)
...
...
@@ -20,17 +50,16 @@ index c494221..f22047e 100644
AC_CHECK_SIZEOF(int32_t)
AC_CHECK_SIZEOF(long,4)
@@ -1168,8 +1169,8 @@
if test "x$largefile_sensitive" = xyes; then
@@ -1167,6 +1184,9 @@
dnl but it is actual plain off_t if the system does not have such switches.
if test "x$largefile_sensitive" = xyes; then
lfs_alias_type=long
lfs_alias_size=$ac_cv_sizeof_long
else
- lfs_alias_type=off_t
- lfs_alias_size=$ac_cv_sizeof_off_t
+elif test "x$android_build" = xyes; then
+ lfs_alias_type=off64_t
+ lfs_alias_size=$ac_cv_sizeof_off64_t
fi
if test "x$lfs_alias_size" = "x"; then
else
lfs_alias_type=off_t
lfs_alias_size=$ac_cv_sizeof_off_t
diff --git a/ports/cmake/src/CMakeLists.txt b/ports/cmake/src/CMakeLists.txt
index 7ea2282..4b7b931 100644
--- a/ports/cmake/src/CMakeLists.txt
...
...
contrib/src/mpg123/rules.mak
View file @
6afaa28e
...
...
@@ -43,9 +43,7 @@ mpg123: mpg123-$(MPG123_VERSION).tar.bz2 .sum-mpg123
$(UNPACK)
$(APPLY)
$(SRC)
/mpg123/0001-configure-detect-WINDOWS_UWP-for-mingw-as-well.patch
$(APPLY)
$(SRC)
/mpg123/0002-configure-don-t-error-on-GetThreadErrorMode-if-we-re.patch
ifdef
HAVE_ANDROID
$(APPLY)
$(SRC)
/mpg123/0003-fix-lfs_alias_t-type-for-Android.patch
endif
# remove generated file from the source package
cd
$(UNPACK_DIR)
&&
rm
-rf
src/libsyn123/syn123.h
$(APPLY)
$(SRC)
/mpg123/no-programs.patch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment