This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] cygwin: add asm/bitsperlong.h, dummy asm/posix_types.h headers


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1e39db3062f941778e748f833e1f88dd5c7399a3

commit 1e39db3062f941778e748f833e1f88dd5c7399a3
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date:   Wed Jan 17 03:03:23 2018 -0600

    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>

Diff:
---
 winsup/cygwin/include/asm/bitsperlong.h | 18 ++++++++++++++++++
 winsup/cygwin/include/asm/posix_types.h | 14 ++++++++++++++
 winsup/cygwin/include/asm/types.h       |  2 ++
 3 files changed, 34 insertions(+)

diff --git a/winsup/cygwin/include/asm/bitsperlong.h b/winsup/cygwin/include/asm/bitsperlong.h
new file mode 100644
index 0000000..48037b6
--- /dev/null
+++ b/winsup/cygwin/include/asm/bitsperlong.h
@@ -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 */
diff --git a/winsup/cygwin/include/asm/posix_types.h b/winsup/cygwin/include/asm/posix_types.h
new file mode 100644
index 0000000..4e9aac0
--- /dev/null
+++ b/winsup/cygwin/include/asm/posix_types.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 */
diff --git a/winsup/cygwin/include/asm/types.h b/winsup/cygwin/include/asm/types.h
index c2342ef..e1e9470 100644
--- a/winsup/cygwin/include/asm/types.h
+++ b/winsup/cygwin/include/asm/types.h
@@ -9,6 +9,8 @@ details. */
 #ifndef _ASM_TYPES_H
 #define _ASM_TYPES_H
 
+#include <asm/bitsperlong.h>
+
 typedef __signed__ char __s8;
 typedef unsigned char __u8;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]