9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
To: 9front@9front.org
Subject: [9front] ape/mkstemp: Include <bsd.h>
Date: Tue, 04 Jan 2022 20:47:16 +0100	[thread overview]
Message-ID: <87y23v2shn.fsf@turtle-trading.net> (raw)

[-- 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


             reply	other threads:[~2022-01-04 20:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-04 19:47 Benjamin Riefenstahl [this message]
2022-01-07 14:46 ` [9front] Re: ape/mkstemp: Set define (was: Include <bsd.h>) Benjamin Riefenstahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y23v2shn.fsf@turtle-trading.net \
    --to=b.riefenstahl@turtle-trading.net \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).