cygwin: add asm/bitsperlong.h, dummy asm/posix_types.h headers
These changes are necessary for cross-compiling the Linux kernel. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
parent
82339fcd71
commit
1e39db3062
|
@ -0,0 +1,18 @@
|
||||||
|
/* asm/bitsperlong.h
|
||||||
|
|
||||||
|
This file is part of Cygwin.
|
||||||
|
|
||||||
|
This software is a copyrighted work licensed under the terms of the
|
||||||
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||||
|
details. */
|
||||||
|
|
||||||
|
#ifndef __ASM_BITSPERLONG_H
|
||||||
|
#define __ASM_BITSPERLONG_H
|
||||||
|
|
||||||
|
#ifdef __x86_64__
|
||||||
|
#define __BITS_PER_LONG 64
|
||||||
|
#else
|
||||||
|
#define __BITS_PER_LONG 32
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* __ASM_BITSPERLONG_H */
|
|
@ -0,0 +1,14 @@
|
||||||
|
/* asm/posix_types.h
|
||||||
|
|
||||||
|
This file is part of Cygwin.
|
||||||
|
|
||||||
|
This software is a copyrighted work licensed under the terms of the
|
||||||
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||||
|
details. */
|
||||||
|
|
||||||
|
#ifndef _ASM_POSIX_TYPES_H
|
||||||
|
#define _ASM_POSIX_TYPES_H
|
||||||
|
|
||||||
|
/* This is just a placeholder to simplify cross-compiling the Linux kernel */
|
||||||
|
|
||||||
|
#endif /* _ASM_POSIX_TYPES_H */
|
|
@ -9,6 +9,8 @@ details. */
|
||||||
#ifndef _ASM_TYPES_H
|
#ifndef _ASM_TYPES_H
|
||||||
#define _ASM_TYPES_H
|
#define _ASM_TYPES_H
|
||||||
|
|
||||||
|
#include <asm/bitsperlong.h>
|
||||||
|
|
||||||
typedef __signed__ char __s8;
|
typedef __signed__ char __s8;
|
||||||
typedef unsigned char __u8;
|
typedef unsigned char __u8;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue