 @@ -0,0 +1,2 @@
 +// The Enclave toolchain has no concept of startup routines. This file is
 +// included for compatibility with the newlib build system.
+diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/arpa/inet.h ./newlib/libc/sys/enclave/include/arpa/inet.h
+--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/arpa/inet.h
++++ ./newlib/libc/sys/enclave/include/arpa/inet.h
+@@ -0,0 +1,4 @@
++#ifndef _ARPA_INET_H_
++#define _ARPA_INET_H_
++
++#endif  // _ARPA_INET_H_
+diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/arpa/nameser.h ./newlib/libc/sys/enclave/include/arpa/nameser.h
+--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/arpa/nameser.h
++++ ./newlib/libc/sys/enclave/include/arpa/nameser.h
+@@ -0,0 +1,4 @@
++#ifndef _ARPA_NAMESER_H_
++#define _ARPA_NAMESER_H_
++
++#endif  // _ARPA_NAMESER_H_
+diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/byteswap.h ./newlib/libc/sys/enclave/include/byteswap.h
+--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/byteswap.h
++++ ./newlib/libc/sys/enclave/include/byteswap.h
+@@ -0,0 +1,4 @@
++#ifndef _BYTESWAP_H_
++#define _BYTESWAP_H_
++
++#endif  // _BYTESWAP_H_
+diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/dlfcn.h ./newlib/libc/sys/enclave/include/dlfcn.h
+--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/dlfcn.h
++++ ./newlib/libc/sys/enclave/include/dlfcn.h
+@@ -0,0 +1,4 @@
++#ifndef _DLFCN_H_
++#define _DLFCN_H_
++
++#endif  // _DLFCN_H_
 diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/endian.h ./newlib/libc/sys/enclave/include/endian.h
 --- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/endian.h
 +++ ./newlib/libc/sys/enclave/include/endian.h

+int feupdateenv(const fenv_t *);
+
+#endif  // THIRD_PARTY_NEWLIB_SRC_NEWLIB_LIBC_SYS_ENCLAVE_INCLUDE_FENV_H_
diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/limits.h ./newlib/libc/sys/enclave/include/limits.h
--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/limits.h
+++ ./newlib/libc/sys/enclave/include/limits.h

+long int telldir(DIR *);
+
+#endif  // _SYS_DIRENT_H
diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/epoll.h ./newlib/libc/sys/enclave/include/sys/epoll.h
--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/epoll.h
+++ ./newlib/libc/sys/enclave/include/sys/epoll.h
@@ -0,0 +1,4 @@
+#ifndef _SYS_EPOLL_H_
+#define _SYS_EPOLL_H_
+
+#endif  // _SYS_EPOLL_H_
diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/eventfd.h ./newlib/libc/sys/enclave/include/sys/eventfd.h
--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/eventfd.h
+++ ./newlib/libc/sys/enclave/include/sys/eventfd.h
@@ -0,0 +1,4 @@
+#ifndef _SYS_EVENTFD_H_
+#define _SYS_EVENTFD_H_
+
+#endif  // _SYS_EVENTFD_H_
diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/inotify.h ./newlib/libc/sys/enclave/include/sys/inotify.h
--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/inotify.h
+++ ./newlib/libc/sys/enclave/include/sys/inotify.h
@@ -0,0 +1,4 @@
+#ifndef _SYS_INOTIFY_H_
+#define _SYS_INOTIFY_H_
+
+#endif  // _SYS_INOTIFY_H_
diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/ioctl.h ./newlib/libc/sys/enclave/include/sys/ioctl.h
--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/ioctl.h
+++ ./newlib/libc/sys/enclave/include/sys/ioctl.h
@@ -0,0 +1,4 @@
+#ifndef _SYS_IOCTL_H_
+#define _SYS_IOCTL_H_
+
+#endif  // _SYS_IOCTL_H_
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
