code: plan9front

Download patch

ref: 988bdd05a326687daa1852c9ff395230743b30d8
parent: 443d5256bdb6b0fb73795706fc5d48a12a3cd0dc
author: Michael Forney <>
date: Sat Jan 23 14:47:12 EST 2021

[9front] ape: remove _SUSV2_SOURCE guard from inttypes.h
inttypes.h was added to C99, and this is the only header that used

Also, remove now unneeded _SUSV2_SOURCE from python mkfile.

--- a/sys/include/ape/inttypes.h
+++ b/sys/include/ape/inttypes.h
@@ -1,7 +1,3 @@
-#ifndef _SUSV2_SOURCE
-#error "inttypes.h is SUSV2"
 #ifndef _INTTYPES_H_
 #define _INTTYPES_H_ 1
--- a/sys/src/cmd/python/Extra/mkfile
+++ b/sys/src/cmd/python/Extra/mkfile
@@ -7,7 +7,7 @@
-CFLAGS=-c -I.. -I../Include -DT$objtype -D_SUSV2_SOURCE -DNDEBUG
+CFLAGS=-c -I.. -I../Include -DT$objtype -DNDEBUG
 %.$O: %.c
 	$CC $CFLAGS -o $stem.$O $stem.c