1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-26 21:17:40 +00:00
freebsd-ports/editors/jove/files/patch-ad
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
384 B
Plaintext

--- abbrev.c.orig Fri Mar 8 02:34:41 1996
+++ abbrev.c Wed Dec 20 05:19:33 2000
@@ -274,7 +274,16 @@
"jabbXXXXXX"
#endif
);
+#ifndef NO_MKSTEMP
+ {
+ int fd = mkstemp(tname);
+ if ( fd == -1 )
+ err( 1, "can't create temp file %s", tname );
+ close( fd );
+ }
+#else
(void) mktemp(tname);
+#endif
save_abbrevs(tname);
setfname(ebuf, tname);
read_file(tname, NO);