 +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/ifaddrs.h ./newlib/libc/sys/enclave/include/ifaddrs.h
+--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/ifaddrs.h
++++ ./newlib/libc/sys/enclave/include/ifaddrs.h
+@@ -0,0 +1,4 @@
++#ifndef _IFADDRS_H_
++#define _IFADDRS_H_
++
++#endif  // _IFADDRS_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

+typedef struct { unsigned char _dummy; } pthread_rwlockattr_t;
+
+#endif  // _SYS__PTHREADTYPES_H
diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/_statfs.h ./newlib/libc/sys/enclave/include/sys/_statfs.h
--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/_statfs.h
+++ ./newlib/libc/sys/enclave/include/sys/_statfs.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
