<commit_before>diff --git a/configure b/configure
index ec1aab7..07ed9fc 100755
--- a/configure
+++ b/configure
@@ -33768,7 +33768,6 @@ printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
     -Wattributes \
     -Wbad-function-cast \
     -Wbuiltin-macro-redefined \
-    -Wcast-align \
     -Wchar-subscripts \
     -Wclobbered \
     -Wcomment \
@@ -33805,14 +33804,11 @@ printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
     -Wmain \
     -Wmaybe-uninitialized \
     -Wmissing-braces \
-    -Wmissing-declarations \
     -Wmissing-field-initializers \
     -Wmissing-include-dirs \
     -Wmissing-parameter-type \
-    -Wmissing-prototypes \
     -Wmultichar \
     -Wnarrowing \
-    -Wnested-externs \
     -Wnonnull \
     -Wnormalized=nfc \
     -Wold-style-declaration \
@@ -33838,8 +33834,6 @@ printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
     -Wstrict-prototypes \
     -Wsuggest-attribute=const \
     -Wsuggest-attribute=format \
-    -Wsuggest-attribute=noreturn \
-    -Wsuggest-attribute=pure \
     -Wswitch \
     -Wswitch-default \
     -Wsync-nand \
diff --git a/lib/creat-safer.c b/lib/creat-safer.c
index 984857b..54bb50a 100644
--- a/lib/creat-safer.c
+++ b/lib/creat-safer.c
@@ -24,6 +24,11 @@
 #include <fcntl.h>
 #include "unistd-safer.h"
 
+#if defined(__native_client__) && defined(_NEWLIB_VERSION)
+/* TODO(bradnelson): Drop once nacl newlib fcntl.h contains creat. */
+extern int creat(const char *filename, mode_t mode);
+#endif
+
 int
 creat_safer (char const *file, mode_t mode)
 {
diff --git a/lib/error.c b/lib/error.c
index 31109df..da35ea1 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -377,9 +377,14 @@ error_at_line (int status, int errnum, const char *file_name,
   __fxprintf (NULL, file_name != NULL ? "%s:%d: " : " ",
               file_name, line_number);
 #else
+# if defined(__pnacl__)<commit_msg>Use glibc-compat creat instead of one in grep patch.<commit_after>diff --git a/configure b/configure
index ec1aab7..07ed9fc 100755
--- a/configure
+++ b/configure
@@ -33768,7 +33768,6 @@ printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
     -Wattributes \
     -Wbad-function-cast \
     -Wbuiltin-macro-redefined \
-    -Wcast-align \
     -Wchar-subscripts \
     -Wclobbered \
     -Wcomment \
@@ -33805,14 +33804,11 @@ printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
     -Wmain \
     -Wmaybe-uninitialized \
     -Wmissing-braces \
-    -Wmissing-declarations \
     -Wmissing-field-initializers \
     -Wmissing-include-dirs \
     -Wmissing-parameter-type \
-    -Wmissing-prototypes \
     -Wmultichar \
     -Wnarrowing \
-    -Wnested-externs \
     -Wnonnull \
     -Wnormalized=nfc \
     -Wold-style-declaration \
@@ -33838,8 +33834,6 @@ printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
     -Wstrict-prototypes \
     -Wsuggest-attribute=const \
     -Wsuggest-attribute=format \
-    -Wsuggest-attribute=noreturn \
-    -Wsuggest-attribute=pure \
     -Wswitch \
     -Wswitch-default \
     -Wsync-nand \
diff --git a/lib/error.c b/lib/error.c
index 31109df..da35ea1 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -377,9 +377,14 @@ error_at_line (int status, int errnum, const char *file_name,
   __fxprintf (NULL, file_name != NULL ? "%s:%d: " : " ",
               file_name, line_number);
 #else
+# if defined(__pnacl__)
{'fraction_non_alphanumeric': 0.15926814637072587, 'fraction_numerical': 0.05188962207558488, 'mean_word_length': 2.5516506922257722, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1032825', 'n_tokens_mistral': 1405, 'n_tokens_neox': 1286, 'n_words': 218}