Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Add minimal Windows SDK to build with standalone mingw64 #9

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions SDKs/win/usr/include/sys/mman.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* ===-- mman.h - stub SDK header for compiler-rt --------------------------===
*
* The LLVM Compiler Infrastructure
*
* This file is dual licensed under the MIT and the University of Illinois Open
* Source Licenses. See LICENSE.TXT for details.
*
* ===-----------------------------------------------------------------------===
*
* This is a stub SDK header file. This file is not part of the interface of
* this library nor an official version of the appropriate SDK header. It is
* intended only to stub the features of this header required by compiler-rt.
*
* ===-----------------------------------------------------------------------===
*/

#ifndef _SYS_MMAN_H_
#define _SYS_MMAN_H_

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#define PROT_NONE 0
#define PROT_READ 1
#define PROT_WRITE 2
#define PROT_EXEC 4

#define _SC_PAGESIZE 8

extern int mprotect (void *__addr, size_t __len, int __prot);

#ifdef __cplusplus
};
#endif /* __cplusplus */

#endif /* _SYS_MMAN_H_ */