You've already forked linux-packaging-mono
Imported Upstream version 5.8.0.22
Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
parent
5f4a27cc8a
commit
7d05485754
@@ -251,6 +251,7 @@ AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BOEHM_DEFINES = @BOEHM_DEFINES@
|
||||
BREAKPOINT = @BREAKPOINT@
|
||||
BTLS_ARCH = @BTLS_ARCH@
|
||||
BTLS_CFLAGS = @BTLS_CFLAGS@
|
||||
BTLS_CMAKE_ARGS = @BTLS_CMAKE_ARGS@
|
||||
@@ -291,12 +292,27 @@ EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GDKX11 = @GDKX11@
|
||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||
GINT_TO_POINTER = @GINT_TO_POINTER@
|
||||
GLIB_CFLAGS = @GLIB_CFLAGS@
|
||||
GLIB_LIBS = @GLIB_LIBS@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GNUC_NORETURN = @GNUC_NORETURN@
|
||||
GNUC_PRETTY = @GNUC_PRETTY@
|
||||
GNUC_UNUSED = @GNUC_UNUSED@
|
||||
GPOINTER_TO_INT = @GPOINTER_TO_INT@
|
||||
GPOINTER_TO_UINT = @GPOINTER_TO_UINT@
|
||||
GREP = @GREP@
|
||||
GSIZE = @GSIZE@
|
||||
GSIZE_FORMAT = @GSIZE_FORMAT@
|
||||
GTKX11 = @GTKX11@
|
||||
GUINT_TO_POINTER = @GUINT_TO_POINTER@
|
||||
G_GINT32_FORMAT = @G_GINT32_FORMAT@
|
||||
G_GINT64_FORMAT = @G_GINT64_FORMAT@
|
||||
G_GUINT32_FORMAT = @G_GUINT32_FORMAT@
|
||||
G_GUINT64_FORMAT = @G_GUINT64_FORMAT@
|
||||
G_HAVE_ISO_VARARGS = @G_HAVE_ISO_VARARGS@
|
||||
HAVE_ALLOCA_H = @HAVE_ALLOCA_H@
|
||||
HAVE_MSGFMT = @HAVE_MSGFMT@
|
||||
HOST_CC = @HOST_CC@
|
||||
INSTALL = @INSTALL@
|
||||
@@ -341,6 +357,8 @@ NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
ORDER = @ORDER@
|
||||
OS = @OS@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
@@ -350,15 +368,19 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATHSEP = @PATHSEP@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PIDTYPE = @PIDTYPE@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PLATFORM_AOT_SUFFIX = @PLATFORM_AOT_SUFFIX@
|
||||
RANLIB = @RANLIB@
|
||||
SEARCHSEP = @SEARCHSEP@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SGEN_DEFINES = @SGEN_DEFINES@
|
||||
SHARED_CFLAGS = @SHARED_CFLAGS@
|
||||
SHELL = @SHELL@
|
||||
SIZEOF_VOID_P = @SIZEOF_VOID_P@
|
||||
SQLITE = @SQLITE@
|
||||
SQLITE3 = @SQLITE3@
|
||||
STRIP = @STRIP@
|
||||
@@ -431,6 +453,7 @@ mkdir_p = @mkdir_p@
|
||||
mono_build_root = @mono_build_root@
|
||||
mono_cfg_dir = @mono_cfg_dir@
|
||||
mono_runtime = @mono_runtime@
|
||||
ninja = @ninja@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
|
@@ -86,7 +86,7 @@ Mono_Posix_Syscall_strerror_r (int errnum, char *buf, mph_size_t n)
|
||||
mph_return_if_size_t_overflow (n);
|
||||
|
||||
/* first, check for valid errnum */
|
||||
#if PLATFORM_ANDROID
|
||||
#if HOST_ANDROID
|
||||
/* Android NDK defines _GNU_SOURCE but strerror_r follows the XSI semantics
|
||||
* not the GNU one. XSI version returns an integer, as opposed to the GNU one
|
||||
* which returns pointer to the buffer.
|
||||
|
@@ -22,8 +22,8 @@
|
||||
#include <corecrt_io.h>
|
||||
#endif
|
||||
|
||||
#include "mph.h" /* Don't remove or move after map.h! Works around issues with Android SDK unified headers */
|
||||
#include "map.h"
|
||||
#include "mph.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
#include "mph.h" /* Don't remove or move after map.h! Works around issues with Android SDK unified headers */
|
||||
#include "map.h"
|
||||
|
||||
int wifexited (int status)
|
||||
|
@@ -32,10 +32,53 @@
|
||||
#include <errno.h> /* for ERANGE */
|
||||
#include <glib.h> /* for g* types, etc. */
|
||||
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STDINT_H
|
||||
#include <stdint.h> /* for SIZE_MAX */
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID_UNIFIED_HEADERS
|
||||
#ifdef HAVE_STDIO_H
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
#undef st_atime_nsec
|
||||
#undef st_mtime_nsec
|
||||
#undef st_ctime_nsec
|
||||
|
||||
#ifndef L_cuserid
|
||||
#define L_cuserid 9 /* size for cuserid(); UT_NAMESIZE + 1 */
|
||||
#endif
|
||||
|
||||
/* NDK unified headers will define fpos_t to be 64-bit if large files support is
|
||||
* enabled (which is the case with Mono) so we need to make sure the offsets here
|
||||
* are actually 32-bit for Android APIs before API24 which did NOT have the 64-bit
|
||||
* versions.
|
||||
*/
|
||||
#if !defined(fgetpos) && __ANDROID_API__ < 24
|
||||
int fgetpos(FILE*, fpos_t*);
|
||||
#endif
|
||||
|
||||
#if !defined(fsetpos) && __ANDROID_API__ < 24
|
||||
int fsetpos(FILE*, const fpos_t*);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
/* Unified headers define 'pw_gecos' to be an alias for 'pw_passwd` on 32-bit Android which
|
||||
* results in two fields named 'pw_passwd' in map.h's 'struct passwd'
|
||||
*/
|
||||
#if !defined(__LP64__) && defined(pw_gecos)
|
||||
#undef pw_gecos
|
||||
#undef HAVE_STRUCT_PASSWD_PW_GECOS
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if __APPLE__ || __BSD__ || __FreeBSD__ || __OpenBSD__
|
||||
#define MPH_ON_BSD
|
||||
#endif
|
||||
@@ -78,11 +121,11 @@
|
||||
* OS X doesn't define MAP_ANONYMOUS, but it does define MAP_ANON.
|
||||
* Alias them to fix: https://bugzilla.xamarin.com/show_bug.cgi?id=3419
|
||||
*/
|
||||
#ifdef PLATFORM_MACOSX
|
||||
#ifdef HOST_DARWIN
|
||||
#ifndef MAP_ANONYMOUS
|
||||
#define MAP_ANONYMOUS MAP_ANON
|
||||
#endif /* ndef MAP_ANONYMOUS */
|
||||
#endif /* ndef PLATFORM_MACOSX */
|
||||
#endif /* ndef HOST_DARWIN */
|
||||
|
||||
/*
|
||||
* XATTR_AUTO is a synonym for 0 within XattrFlags, but most systems don't
|
||||
|
@@ -13,8 +13,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "mph.h" /* Don't remove or move after map.h! Works around issues with Android SDK unified headers */
|
||||
#include "map.h"
|
||||
#include "mph.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
@@ -18,7 +18,7 @@ G_BEGIN_DECLS
|
||||
void*
|
||||
Mono_Unix_VersionString ()
|
||||
{
|
||||
return "MonoProject-2015-12-1";
|
||||
return (void *) "MonoProject-2015-12-1";
|
||||
}
|
||||
|
||||
gint32
|
||||
|
@@ -52,7 +52,7 @@ get_function (const char *name)
|
||||
compare_names);
|
||||
|
||||
if (ptr == NULL) {
|
||||
g_warning ("Function '%s' not not found.", name);
|
||||
g_warning ("Function '%s' not found.", name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@@ -13,7 +13,7 @@
|
||||
#define _XOPEN_SOURCE 600
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_MACOSX
|
||||
#ifdef HOST_DARWIN
|
||||
/* For mincore () */
|
||||
#define _DARWIN_C_SOURCE
|
||||
#endif
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <sys/mman.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "mono/utils/mono-compiler.h"
|
||||
#include "map.h"
|
||||
#include "mph.h"
|
||||
|
||||
|
@@ -12,6 +12,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "mono/utils/mono-compiler.h"
|
||||
#include "map.h"
|
||||
#include "mph.h"
|
||||
|
||||
@@ -31,7 +32,7 @@ Mono_Posix_Syscall_sendfile (int out_fd, int in_fd, mph_off_t *offset, mph_size_
|
||||
|
||||
_offset = *offset;
|
||||
|
||||
#if defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD)
|
||||
#if defined(HOST_DARWIN) || defined(HOST_BSD)
|
||||
/* The BSD version has 6 arguments */
|
||||
g_assert_not_reached ();
|
||||
#else
|
||||
|
@@ -19,8 +19,8 @@
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "mph.h" /* Don't remove or move after map.h! Works around issues with Android SDK unified headers */
|
||||
#include "map.h"
|
||||
#include "mph.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
@@ -33,6 +33,8 @@
|
||||
#include <unistd.h> /* for pathconf */
|
||||
#endif /* def HAVE_GETFSSTAT */
|
||||
|
||||
#include "mono/utils/mono-compiler.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifdef HAVE_SYS_STATVFS_H
|
||||
@@ -129,9 +131,11 @@ Mono_Posix_Syscall_fstatvfs (gint32 fd, struct Mono_Posix_Statvfs *buf)
|
||||
* BSD-compatible definitions.
|
||||
*
|
||||
* Linux also provides these, but are deprecated in favor of (f)statvfs.
|
||||
* Android NDK unified headers define HAVE_FSTATFS but also HAVE_SYS_STATVFS_H
|
||||
* which makes these duplicates of the functions defined above
|
||||
*/
|
||||
|
||||
#if (defined (HAVE_STATFS) || defined (HAVE_FSTATFS)) && !defined (HAVE_STATVFS)
|
||||
#if (defined (HAVE_STATFS) || defined (HAVE_FSTATFS)) && !defined (HAVE_STATVFS) && !defined(ANDROID_UNIFIED_HEADERS)
|
||||
int
|
||||
Mono_Posix_ToStatvfs (void *_from, struct Mono_Posix_Statvfs *to)
|
||||
{
|
||||
@@ -197,7 +201,7 @@ set_fnamemax (int fd, struct Mono_Posix_Statvfs *buf)
|
||||
}
|
||||
#endif /* (def HAVE_STATFS || def HAVE_FSTATFS) && !def HAVE_STATVFS */
|
||||
|
||||
#if !defined (HAVE_STATVFS) && defined (HAVE_STATFS)
|
||||
#if !defined (HAVE_STATVFS) && defined (HAVE_STATFS) && (!defined(ANDROID_UNIFIED_HEADERS) || __ANDROID_API__ >= 19)
|
||||
gint32
|
||||
Mono_Posix_Syscall_statvfs (const char *path, struct Mono_Posix_Statvfs *buf)
|
||||
{
|
||||
@@ -218,7 +222,7 @@ Mono_Posix_Syscall_statvfs (const char *path, struct Mono_Posix_Statvfs *buf)
|
||||
}
|
||||
#endif /* !def HAVE_STATVFS && def HAVE_STATFS */
|
||||
|
||||
#if !defined (HAVE_STATVFS) && defined (HAVE_STATFS)
|
||||
#if !defined (HAVE_STATVFS) && defined (HAVE_STATFS) && (!defined(ANDROID_UNIFIED_HEADERS) || __ANDROID_API__ >= 19)
|
||||
gint32
|
||||
Mono_Posix_Syscall_fstatvfs (gint32 fd, struct Mono_Posix_Statvfs *buf)
|
||||
{
|
||||
|
@@ -21,8 +21,8 @@
|
||||
#include <limits.h>
|
||||
#include <string.h> /* for swab(3) on Mac OS X */
|
||||
|
||||
#include "mph.h" /* Don't remove or move after map.h! Works around issues with Android SDK unified headers */
|
||||
#include "map.h"
|
||||
#include "mph.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
@@ -230,7 +230,7 @@ Mono_Posix_Syscall_setdomainname (const char *name, mph_size_t len)
|
||||
/* Android implements truncate, but doesn't declare it.
|
||||
* Result is a warning during compilation, so skip it.
|
||||
*/
|
||||
#ifndef PLATFORM_ANDROID
|
||||
#ifndef HOST_ANDROID
|
||||
gint32
|
||||
Mono_Posix_Syscall_truncate (const char *path, mph_off_t length)
|
||||
{
|
||||
|
Reference in New Issue
Block a user