Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions srcpkgs/wlclock/patches/fix-wlclock-argv.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
original patch from https://cgit.freebsd.org/ports/patch/?id=d28e388a9a1e09ad8181a37575ed35e681a426ce

diff --git a/src/wlclock.c b/src/wlclock.c
index 1ac7dbf..2d7df7a 100644
--- a/src/wlclock.c
+++ b/src/wlclock.c
@@ -330,7 +330,7 @@ static bool handle_command_flags (int argc, char *argv[])
int opt, args;
extern int optind;
extern char *optarg;
- while ( (opt = getopt_long(argc, argv, "hvV", opts, &optind)) != -1 ) switch (opt)
+ while ( (opt = getopt_long(argc, argv, "hvV", opts, NULL)) != -1 ) switch (opt)
{
case 'h':
fputs(usage, stderr);
2 changes: 1 addition & 1 deletion srcpkgs/wlclock/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'wlclock'
pkgname=wlclock
version=1.0.1
revision=1
revision=2
build_style=meson
hostmakedepends="pkg-config scdoc wayland-devel"
makedepends="cairo-devel wayland-devel wayland-protocols"
Expand Down
Loading