1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00
freebsd-ports/editors/jove/files/patch-ae
Kevin Lo 641cfa39ea - Support CFLAGS properly
- Support install macros
- mktemp() -> mkstemp()
- Remove unnecessary manpages

PR: 23759
Submitted by: Ports Fury
2000-12-22 16:42:19 +00:00

20 lines
465 B
Plaintext

--- io.c.orig Fri Mar 8 02:34:42 1996
+++ io.c Wed Dec 20 05:19:17 2000
@@ -1193,10 +1193,16 @@
#endif
);
tfname = copystr(buf);
+#ifdef NO_MKSTEMP
tfname = mktemp(tfname);
+#endif
#ifndef MSFILESYSTEM
+#ifndef NO_MKSTEMP
+ tmpfd = mkstemp(tfname);
+#else
(void) close(creat(tfname, 0600));
tmpfd = open(tfname, 2);
+#endif
#else /* MSFILESYSTEM */
tmpfd = open(tfname, O_CREAT|O_EXCL|O_BINARY|O_RDWR, S_IWRITE|S_IREAD);
#endif /* MSFILESYSTEM */