mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
- unbreak
Feature safe: yes
This commit is contained in:
parent
792dbec403
commit
c56e966dc9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285957
@ -20,8 +20,6 @@ COMMENT= Multiple DNA/protein sequence alignment editor
|
||||
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk \
|
||||
pdf.8:${PORTSDIR}/print/pdflib
|
||||
|
||||
BROKEN= does not compile
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
EXTRACT_CMD= ${CAT}
|
||||
EXTRACT_BEFORE_ARGS= #
|
||||
|
29
biology/seaview/files/patch-use_mase_files.cxx
Normal file
29
biology/seaview/files/patch-use_mase_files.cxx
Normal file
@ -0,0 +1,29 @@
|
||||
--- use_mase_files.cxx.orig 2011-11-17 14:20:13.000000000 +0100
|
||||
+++ use_mase_files.cxx 2011-11-17 14:20:01.000000000 +0100
|
||||
@@ -1457,8 +1457,6 @@
|
||||
|
||||
#else
|
||||
|
||||
-extern "C" { int stat(char *, void *); }
|
||||
-
|
||||
int check_path(char *fname)
|
||||
/* to check for presence of file fname
|
||||
searching for it through all path directories
|
||||
@@ -1468,7 +1466,7 @@
|
||||
#define Mxdir 200
|
||||
char dir[Mxdir+1], *path, *deb, *fin;
|
||||
int lf, ltot;
|
||||
- static char stat_struct[250]; /* bigger than necessary */
|
||||
+ struct stat sb;
|
||||
path=getenv("PATH"); /* get the list of path directories,
|
||||
separated by :
|
||||
*/
|
||||
@@ -1488,7 +1486,7 @@
|
||||
dir[ltot]='/';
|
||||
strcpy(dir+ltot+1,fname);
|
||||
/* now dir is appended with filename */
|
||||
- if( stat(dir, stat_struct) == 0) return 0;
|
||||
+ if( stat(dir, &sb) == 0) return 0;
|
||||
}
|
||||
deb=fin+1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user