9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] ape/mkstemp: Include <bsd.h>
@ 2022-01-04 19:47 Benjamin Riefenstahl
  2022-01-07 14:46 ` [9front] Re: ape/mkstemp: Set define (was: Include <bsd.h>) Benjamin Riefenstahl
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Riefenstahl @ 2022-01-04 19:47 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 59 bytes --]

ape/mkstemp.c currently uses mktemp() without a prototype.

[-- Attachment #2.1: Type: text/plain, Size: 308 bytes --]

from postmaster@4ess:
The following attachment had content that we can't
prove to be harmless.  To avoid possible automatic
execution, we changed the content headers.
The original header was:

	Content-Type: text/x-diff
	Content-Disposition: inline;
 filename=0002-ape-mkstemp-include-header-for-mktemp.patch

[-- Attachment #2.2: 0002-ape-mkstemp-include-header-for-mktemp.patch.suspect --]
[-- Type: application/octet-stream, Size: 524 bytes --]

From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
Date: Fri, 10 Dec 2021 20:47:09 +0000
Subject: [PATCH] ape/mkstemp: include header for mktemp

---
diff 9a027a77a0d407d542dbb49be398a474b10deb2b dd7ad4725c5dfb26ad44e8e4206116f96f054ba4
--- a/sys/src/ape/lib/ap/gen/mkstemp.c	Fri Dec 10 21:44:26 2021
+++ b/sys/src/ape/lib/ap/gen/mkstemp.c	Fri Dec 10 21:47:09 2021
@@ -1,3 +1,6 @@
+#define _BSD_EXTENSION 1
+#include <bsd.h> /* mktemp */
+
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>

-- 
1.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-07 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 19:47 [9front] ape/mkstemp: Include <bsd.h> Benjamin Riefenstahl
2022-01-07 14:46 ` [9front] Re: ape/mkstemp: Set define (was: Include <bsd.h>) Benjamin Riefenstahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).