Skip to content
Snippets Groups Projects
Commit e74027ab authored by Yang Sheng's avatar Yang Sheng
Browse files

Branch HEAD

b=18790

i=robert, panda

Check the types for PPC64 platform.
parent 5fad600e
No related branches found
No related tags found
No related merge requests found
......@@ -433,7 +433,6 @@ LB_LINUX_TRY_COMPILE([
])
])
#
# LIBCFS_PROG_LINUX
#
......@@ -510,6 +509,21 @@ AC_CHECK_TYPE([spinlock_t],
# lnet/utils/wirecheck.c
AC_CHECK_FUNCS([strnlen])
AC_CHECK_TYPE([umode_t],
[AC_DEFINE(HAVE_UMODE_T, 1, [umode_t is defined])],
[],
[#include <signal.h>])
AC_CHECK_TYPE([__u64],
[AC_DEFINE(HAVE___U64, 1, [__u64 is defined])],
[],
[#include <signal.h>])
AC_CHECK_TYPE([__s64],
[AC_DEFINE(HAVE___S64, 1, [__s64 is defined])],
[],
[#include <signal.h>])
# -------- Check for required packages --------------
......
......@@ -42,7 +42,9 @@
#ifndef _LUSTRE_POSIX_TYPES_H
#define _LUSTRE_POSIX_TYPES_H
#ifndef HAVE_UMODE_T
typedef unsigned short umode_t;
#endif
/*
* __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
......@@ -58,8 +60,12 @@ typedef unsigned short __u16;
typedef __signed__ int __s32;
typedef unsigned int __u32;
#ifndef HAVE___S64
typedef __signed__ long long __s64;
#endif
#ifndef HAVE___U64
typedef unsigned long long __u64;
#endif
/* long integer with size equal to pointer */
typedef unsigned long ulong_ptr_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment