Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
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
videolan
vlc
Commits
49972383
Commit
49972383
authored
Jan 29, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed execution of binaries linked against the 10.7 SDK on 10.6
parent
4a646775
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
configure.ac
configure.ac
+7
-1
include/vlc_fixups.h
include/vlc_fixups.h
+3
-8
No files found.
configure.ac
View file @
49972383
...
@@ -154,7 +154,13 @@ case "${host_os}" in
...
@@ -154,7 +154,13 @@ case "${host_os}" in
VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation])
VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation])
dnl Allow binaries created on Lion to run on earlier releases
dnl Allow binaries created on Lion to run on earlier releases
AC_LIBOBJ([getdelim])
AC_EGREP_CPP(yes,
[#import <Cocoa/Cocoa.h>
#ifdef MAC_OS_X_VERSION_10_7
yes
#endif],
[AC_MSG_RESULT([yes])
AC_LIBOBJ([getdelim strndup strnlen])],)
dnl
dnl
dnl Check for Mac OS X SDK settings
dnl Check for Mac OS X SDK settings
...
...
include/vlc_fixups.h
View file @
49972383
...
@@ -44,8 +44,7 @@ typedef struct
...
@@ -44,8 +44,7 @@ typedef struct
#endif
#endif
#if !defined (HAVE_REWIND) || \
#if !defined (HAVE_REWIND) || \
!defined (HAVE_GETDELIM) || \
!defined (HAVE_GETDELIM)
defined (__APPLE__)
# include <stdio.h>
/* FILE */
# include <stdio.h>
/* FILE */
#endif
#endif
...
@@ -59,7 +58,7 @@ typedef struct
...
@@ -59,7 +58,7 @@ typedef struct
# include <stdarg.h>
/* va_list */
# include <stdarg.h>
/* va_list */
#endif
#endif
#if !defined (HAVE_GETDELIM) ||
defined (__APPLE__) ||
\
#if !defined (HAVE_GETDELIM) || \
!defined (HAVE_GETPID) || \
!defined (HAVE_GETPID) || \
!defined (HAVE_SWAB)
!defined (HAVE_SWAB)
# include <sys/types.h>
/* ssize_t, pid_t */
# include <sys/types.h>
/* ssize_t, pid_t */
...
@@ -89,11 +88,7 @@ int putc_unlocked (int, FILE *);
...
@@ -89,11 +88,7 @@ int putc_unlocked (int, FILE *);
int
putchar_unlocked
(
int
);
int
putchar_unlocked
(
int
);
#endif
#endif
/* we always need our implementation on Darwin, since native support for getline
#ifndef HAVE_GETDELIM
* was added lately to Darwin 11 (OS X Lion) only.
* However, we want binaries created on this OS to be executable on previous
* releases. */
#if !defined HAVE_GETDELIM
ssize_t
getdelim
(
char
**
,
size_t
*
,
int
,
FILE
*
);
ssize_t
getdelim
(
char
**
,
size_t
*
,
int
,
FILE
*
);
ssize_t
getline
(
char
**
,
size_t
*
,
FILE
*
);
ssize_t
getline
(
char
**
,
size_t
*
,
FILE
*
);
#endif
#endif
...
...
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