1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/graphics/urt/files/patch-tools-rleaddcom.c
Marcelo Araujo 94e79576fb - Fix build with clang.
- Add MAKE_JOBS_SAFE.
- Trim header.
- Convert to optionsNG.

PR:		ports/172717
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-01-21 03:31:56 +00:00

30 lines
596 B
C

--- tools/rleaddcom.c.orig 1992-04-30 23:11:00.000000000 +0900
+++ tools/rleaddcom.c 2012-10-16 01:10:13.000000000 +0900
@@ -26,6 +26,8 @@
*/
#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
#include "rle.h"
#include <sys/types.h>
#include <sys/param.h> /* for MAXPATHLEN */
@@ -60,7 +62,7 @@
* Algorithm:
* [None]
*/
-void
+int
main( argc, argv )
int argc;
char **argv;
@@ -118,7 +120,7 @@
}
else
strcpy( buf, temp );
- mktemp( buf );
+ mkstemp( buf );
#ifndef NO_OPEN_PIPES
/* Compressed file special case. */
cp = i_fname + strlen( i_fname ) - 2;