 +#define _ARPA_NAMESER_H_
 +
 +#endif  // _ARPA_NAMESER_H_
+diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/bits/wordsize.h ./newlib/libc/sys/enclave/include/bits/wordsize.h
+--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/bits/wordsize.h
++++ ./newlib/libc/sys/enclave/include/bits/wordsize.h
+@@ -0,0 +1,12 @@
++#ifndef _BITS_WORDSIZE_H_
++#define _BITS_WORDSIZE_H_
++
++/* Determine the wordsize from the preprocessor defines.  */
++
++#if defined __x86_64__ && !defined __ILP32__
++# define __WORDSIZE 64
++#else
++# define __WORDSIZE 32
++#endif
++
++#endif  // _BITS_WORDSIZE_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

diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/Makefile.in ./newlib/libc/sys/enclave/Makefile.in
--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/Makefile.in
+++ ./newlib/libc/sys/enclave/Makefile.in
@@ -0,0 +1,461 @@
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
+# @configure_input@
+

+#define _SEMAPHORE_H_
+
+#endif  // _SEMAPHORE_H_
diff -Naur ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/dirent.h ./newlib/libc/sys/enclave/include/sys/dirent.h
--- ../newlib-2.5.0.20170922/newlib/libc/sys/enclave/include/sys/dirent.h
+++ ./newlib/libc/sys/enclave/include/sys/dirent.h
