shithub: 9pro

Download patch

ref: 1bfefe551389909d88c22c51f3c33a524cebf827
parent: 01f919209d51ba37c5b227e9fd790619e709bc92
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Dec 22 19:24:51 EST 2019

c99, ms-extensions, _DEFAULT_SOURCE

--- a/9pex.c
+++ b/9pex.c
@@ -1,3 +1,4 @@
+#define _DEFAULT_SOURCE
 #define _FILE_OFFSET_BITS 64
 #include <dirent.h>
 #include <errno.h>
--- a/build.sh
+++ b/build.sh
@@ -1,4 +1,4 @@
 #!/bin/sh
 set -e
 set -x
-${CC:-gcc} -DC9_NO_CLIENT -lrt -O -ggdb -Wall -Wextra -Wshadow -Wpedantic -Werror $CFLAGS c9/*.c parg/*.c -Ic9 -Iparg 9pex.c -o 9pex
+${CC:-gcc} -std=c99 -fms-extensions -DC9_NO_CLIENT -O -ggdb -Wall -Wextra -Wshadow -Werror $CFLAGS c9/*.c parg/*.c -Ic9 -Iparg 9pex.c -o 9pex