projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: fix compatibility header for Cygwin
[urcu.git]
/
urcu
/
arch
/
s390.h
diff --git
a/urcu/arch/s390.h
b/urcu/arch/s390.h
index e12c88c3398728025e745bd53e4c997e1d5e2fca..67461b4d6ed1c3f6ac258b0e636a6939fd942871 100644
(file)
--- a/
urcu/arch/s390.h
+++ b/
urcu/arch/s390.h
@@
-31,6
+31,7
@@
#include <urcu/compiler.h>
#include <urcu/config.h>
#include <urcu/syscall-compat.h>
#include <urcu/compiler.h>
#include <urcu/config.h>
#include <urcu/syscall-compat.h>
+#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-42,11
+43,11
@@
extern "C" {
#define HAS_CAA_GET_CYCLES
#define HAS_CAA_GET_CYCLES
-typedef u
nsigned long long
cycles_t;
+typedef u
int64_t caa_
cycles_t;
-static inline cycles_t caa_get_cycles (void)
+static inline c
aa_c
ycles_t caa_get_cycles (void)
{
{
- cycles_t cycles;
+ c
aa_c
ycles_t cycles;
__asm__ __volatile__("stck %0" : "=m" (cycles) : : "cc", "memory" );
__asm__ __volatile__("stck %0" : "=m" (cycles) : : "cc", "memory" );
@@
-54,10
+55,10
@@
static inline cycles_t caa_get_cycles (void)
}
/*
}
/*
- *
Define the membarrier system call number if not yet available in the
- * system headers.
+ *
On Linux, define the membarrier system call number if not yet available in
+ *
the
system headers.
*/
*/
-#if
ndef __NR_membarrier
+#if
(defined(__linux__) && !defined(__NR_membarrier))
#define __NR_membarrier 356
#endif
#define __NR_membarrier 356
#endif
This page took
0.023919 seconds
and
4
git commands to generate.