You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@@ -334,7 +334,8 @@ set_attributes (int fd, int baud_rate, MonoParity parity, int dataBits, MonoStop
|
||||
newtio.c_cflag |= CSTOPB;
|
||||
break;
|
||||
case OnePointFive: /* OnePointFive */
|
||||
/* XXX unhandled */
|
||||
/* 8250 UART handles stop bit flag as 1.5 stop bits for 5 data bits */
|
||||
newtio.c_cflag |= CSTOPB;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -115,12 +115,12 @@ int Mono_Posix_FromRealTimeSignum (int offset, int *r)
|
||||
// We can still use atomic.h because that's all inline functions--
|
||||
// unless WAPI_NO_ATOMIC_ASM is defined, in which case atomic.h calls linked functions.
|
||||
#ifndef WAPI_NO_ATOMIC_ASM
|
||||
#define mph_int_get(p) InterlockedExchangeAdd ((p), 0)
|
||||
#define mph_int_inc(p) InterlockedIncrement ((p))
|
||||
#define mph_int_dec_test(p) (InterlockedDecrement ((p)) == 0)
|
||||
#define mph_int_set(p,n) InterlockedExchange ((p), (n))
|
||||
#define mph_int_get(p) mono_atomic_fetch_add_i32 ((p), 0)
|
||||
#define mph_int_inc(p) mono_atomic_inc_i32 ((p))
|
||||
#define mph_int_dec_test(p) (mono_atomic_dec_i32 ((p)) == 0)
|
||||
#define mph_int_set(p,n) mono_atomic_xchg_i32 ((p), (n))
|
||||
// Pointer, original, new
|
||||
#define mph_int_test_and_set(p,o,n) (o == InterlockedCompareExchange ((p), (n), (o)))
|
||||
#define mph_int_test_and_set(p,o,n) (o == mono_atomic_cas_i32 ((p), (n), (o)))
|
||||
#elif GLIB_CHECK_VERSION(2,4,0)
|
||||
#define mph_int_get(p) g_atomic_int_get ((p))
|
||||
#define mph_int_inc(p) do {g_atomic_int_inc ((p));} while (0)
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* (C) 2005 Novell, Inc.
|
||||
*
|
||||
*/
|
||||
#include <config.h>
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -11,7 +11,12 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#if defined(HAVE_SYS_XATTR_H) || defined(HAVE_ATTR_ATTR_H) || defined(HAVE_SYS_EXTATTR_H)
|
||||
//If we're compiling to API level < 16 this won't be available
|
||||
#if __ANDROID_API__ < 16
|
||||
#define ANDROID_NO_XATTR
|
||||
#endif
|
||||
|
||||
#if (defined(HAVE_SYS_XATTR_H) || defined(HAVE_ATTR_ATTR_H) || defined(HAVE_SYS_EXTATTR_H)) && !defined (ANDROID_NO_XATTR)
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user