Patchwork Delete abortion joke

login
register
mail settings
Submitter Javier Serrano Polo
Date May 4, 2018, 4:40 p.m.
Message ID <1525452041.13115.2.camel@jasp.net>
Download mbox | patch
Permalink /patch/27110/
State New
Headers show

Comments

Patch

--- a/stdlib/stdlib.h	2018-05-04 04:41:52.000000000 +0200
+++ b/stdlib/stdlib.h	2018-05-04 04:49:06.000000000 +0200
@@ -584,8 +584,14 @@ 
      __THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur;
 #endif
 
+#if !defined ENABLE_FUN || defined I_OPPOSE_CENSORSHIP
 /* Abort execution and generate a core-dump.  */
 extern void abort (void) __THROW __attribute__ ((__noreturn__));
+#else
+extern void abort (void) __THROW __attribute__ ((__noreturn__))
+     __attribute__ ((error (
+          "Political regulations prohibit calling this function")));
+#endif
 
 
 /* Register a function to be called when `exit' is called.  */