git: 6402e2372da0 - main - biology/emboss: fix build on powerpc*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 03 Dec 2023 11:13:54 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6402e2372da0b6fdae427ae36d0db772eaef5065
commit 6402e2372da0b6fdae427ae36d0db772eaef5065
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-12-02 19:21:36 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-12-03 11:13:43 +0000
biology/emboss: fix build on powerpc*
ajfileio.c:271:7: warning: call to undeclared function 'ajSysFuncFgets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
cp = ajSysFuncFgets(&buff[ipos], isize, file->fp);
^
ajfileio.c:271:5: error: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion]
cp = ajSysFuncFgets(&buff[ipos], isize, file->fp);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
---
biology/emboss/files/patch-ajax_core_ajfileio.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/biology/emboss/files/patch-ajax_core_ajfileio.c b/biology/emboss/files/patch-ajax_core_ajfileio.c
new file mode 100644
index 000000000000..b819ff5e1390
--- /dev/null
+++ b/biology/emboss/files/patch-ajax_core_ajfileio.c
@@ -0,0 +1,10 @@
+--- ajax/core/ajfileio.c.orig 2023-12-02 19:03:54 UTC
++++ ajax/core/ajfileio.c
+@@ -31,6 +31,7 @@
+ #include "ajfileio.h"
+ #include "ajutil.h"
+ #include "ajfile.h"
++#include "ajsys.h"
+
+ #include <string.h>
+ #include <errno.h>