ref: 297c6d8c490ea934a4cd968d9edc5656ecd209a4
parent: aad36c645ab7b9ab376a935ca7aa63b7d303c46f
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Oct 30 23:52:08 EDT 2022
ape: fix warning building mkstemp mkstemp uses mktemp, which is only declared when including files with _BSD_SOURCE, so define _BSD_SOURCE before including the headers
--- a/sys/src/ape/lib/ap/gen/mkstemp.c
+++ b/sys/src/ape/lib/ap/gen/mkstemp.c
@@ -1,3 +1,4 @@
+#define _BSD_SOURCE
#include <stdlib.h>
#include <string.h>
#include <unistd.h>