git: 7f9480c70482 - main - sysutils/qlogtools: include errno.h for errno
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Sep 2024 22:15:21 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7f9480c704826bce8020a898e57695f78e0bd811
commit 7f9480c704826bce8020a898e57695f78e0bd811
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-09-30 15:56:09 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-09-30 22:13:44 +0000
sysutils/qlogtools: include errno.h for errno
errno must be accessed by a macro from errno.h.
---
sysutils/qlogtools/Makefile | 2 +-
sysutils/qlogtools/files/patch-qfilelog.c | 14 ++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/sysutils/qlogtools/Makefile b/sysutils/qlogtools/Makefile
index d9eddf79c7fe..fea7fc1733b4 100644
--- a/sysutils/qlogtools/Makefile
+++ b/sysutils/qlogtools/Makefile
@@ -1,6 +1,6 @@
PORTNAME= qlogtools
PORTVERSION= 3.1
-PORTREVISION= 4
+PORTREVISION= 6
CATEGORIES= sysutils
MASTER_SITES= http://untroubled.org/${PORTNAME}/
diff --git a/sysutils/qlogtools/files/patch-qfilelog.c b/sysutils/qlogtools/files/patch-qfilelog.c
new file mode 100644
index 000000000000..aab6050e60f8
--- /dev/null
+++ b/sysutils/qlogtools/files/patch-qfilelog.c
@@ -0,0 +1,14 @@
+--- qfilelog.c.orig
++++ qfilelog.c
+@@ -1,10 +1,9 @@
++#include <errno.h>
+ #include <fcntl.h>
+ #include <signal.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
+-
+-extern int errno;
+
+ #define PAUSE sleep(60)
+