mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 00:46:27 -04:00
- Fix an odd error message "sort: file not found". It was not harmful but confusing. - Increase the maximum number of vertexes in a spline curve. 100 vertexes were too small in modern environments. - Use _PATH_* wherever possible.
24 lines
529 B
C
24 lines
529 B
C
--- refer/inv1.c.orig 2016-03-09 21:27:38 UTC
|
|
+++ refer/inv1.c
|
|
@@ -28,6 +28,9 @@
|
|
#include <stdio.h>
|
|
#include <locale.h>
|
|
#include <assert.h>
|
|
+#ifdef __FreeBSD__
|
|
+#include <paths.h>
|
|
+#endif
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "refer..c"
|
|
@@ -59,7 +62,11 @@ main(int argc, char **argv)
|
|
int iflong =0;
|
|
char *sortdir;
|
|
|
|
+#ifdef __FreeBSD__
|
|
+ sortdir = _PATH_VARTMP;
|
|
+#else
|
|
sortdir = (access("/crp/tmp", 06)==0) ? "/crp/tmp" : "/var/tmp";
|
|
+#endif
|
|
while (argc>1 && argv[1][0] == '-')
|
|
{
|
|
switch(argv[1][1])
|