 diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/mman.h ./newlib/libc/sys/enclave/include/sys/mman.h
 --- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/mman.h
 +++ ./newlib/libc/sys/enclave/include/sys/mman.h
-@@ -0,0 +1,72 @@
+@@ -0,0 +1,77 @@
 +/*
 + *
 + * Copyright 2018 Asylo authors

diff -Naur ../newlib-2.5.0.20170922/libgloss/enclave/mman.c ./libgloss/enclave/mman.c
--- ../newlib-2.5.0.20170922/libgloss/enclave/mman.c
+++ ./libgloss/enclave/mman.c
@@ -0,0 +1,103 @@
+/*
+ *
+ * Copyright 2018 Asylo authors

+#ifndef _SYS_MMAN_H_
+#define _SYS_MMAN_H_
+
+#include <sys/features.h>
+#include <sys/types.h>
+
+#ifdef __cplusplus
