--- include/libc.h.orig
+++ include/libc.h
@@ -102,7 +102,10 @@ extern	void	sysfatal(char*, ...);
 #define atoll		p9atoll
 #define getenv		p9getenv
 #define	getwd		p9getwd
+#ifdef longjmp
+#undef longjmp
+#endif
 #define	longjmp		p9longjmp
 #undef  setjmp
 #define setjmp		p9setjmp
