pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/benchmarks/postmark
Module Name:    pkgsrc
Committed By:   mrg
Date:           Tue Oct  7 03:56:29 UTC 2025
Modified Files:
        pkgsrc/benchmarks/postmark: distinfo
Added Files:
        pkgsrc/benchmarks/postmark/patches: patch-postmark.c
Log Message:
Fix build with GCC 14: include <unistd.h> for read()/write()/rmdir(),
and sys/stat.h for mkdir(), and give main a return type.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/benchmarks/postmark/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/benchmarks/postmark/patches/patch-postmark.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/benchmarks/postmark/distinfo
diff -u pkgsrc/benchmarks/postmark/distinfo:1.7 pkgsrc/benchmarks/postmark/distinfo:1.8
--- pkgsrc/benchmarks/postmark/distinfo:1.7     Tue Oct 26 10:02:55 2021
+++ pkgsrc/benchmarks/postmark/distinfo Tue Oct  7 03:56:29 2025
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 10:02:55 nia Exp $
+$NetBSD: distinfo,v 1.8 2025/10/07 03:56:29 mrg Exp $
 
 BLAKE2s (postmark-1_5.c) = a08491a58ee305e43fd75ab8ec771f6675d3522078489d0d89c9bf9b07fb6709
 SHA512 (postmark-1_5.c) = 721298cb5474f3619ddc5d17d54bc1d049eb2eb1412fafe498fb5d074aafbead4c55380e6ece3759651624c90dad6ab4fe5391e870da09791bc533362870866d
 Size (postmark-1_5.c) = 46666 bytes
+SHA1 (patch-postmark.c) = 0c7bab67e5737d3311dfbcfa75ea44d05715a66b
Added files:
Index: pkgsrc/benchmarks/postmark/patches/patch-postmark.c
diff -u /dev/null pkgsrc/benchmarks/postmark/patches/patch-postmark.c:1.1
--- /dev/null   Tue Oct  7 03:56:29 2025
+++ pkgsrc/benchmarks/postmark/patches/patch-postmark.c Tue Oct  7 03:56:29 2025
@@ -0,0 +1,26 @@
+$NetBSD: patch-postmark.c,v 1.1 2025/10/07 03:56:29 mrg Exp $
+
+Include <unistd.h> for read()/write()/rmdir() and sys/stat.h for mkdir(),
+and give main a return type.  Makes GCC 14 happy.
+
+
+--- postmark.c.orig    2025-09-29 15:03:55.078573258 -0700
++++ postmark.c 2025-09-29 15:05:33.243049771 -0700
+@@ -51,6 +51,8 @@ Versions:
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
++#include <unistd.h>
++#include <sys/stat.h>
+ #include <time.h>
+ #include <fcntl.h>
+ 
+@@ -1228,7 +1230,7 @@ char *buffer;   /* temp storage for each
+ }
+ 
+ /* main function - reads config files then enters get line/parse line loop */
+-main(argc,argv)
++int main(argc,argv)
+ int argc;
+ char *argv[];
+ {
Home |
Main Index |
Thread Index |
Old Index