summaryrefslogtreecommitdiff
path: root/sysutils/htop/patches/patch-htop.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/htop/patches/patch-htop.c')
-rw-r--r--sysutils/htop/patches/patch-htop.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysutils/htop/patches/patch-htop.c b/sysutils/htop/patches/patch-htop.c
new file mode 100644
index 00000000000..ccf506c19b4
--- /dev/null
+++ b/sysutils/htop/patches/patch-htop.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-htop.c,v 1.1 2011/08/06 16:36:41 cheusov Exp $
+
+--- htop.c.orig 2010-11-24 18:45:38.000000000 +0000
++++ htop.c
+@@ -272,7 +272,7 @@ int main(int argc, char** argv) {
+ setlocale(LC_CTYPE, getenv("LC_ALL"));
+
+ /* Parse arguments */
+- while ((opt = getopt_long_only(argc, argv, "hvCs:d:u:", long_opts, &opti))) {
++ while ((opt = getopt_long(argc, argv, "hvCs:d:u:", long_opts, &opti))) {
+ if (opt == EOF) break;
+ switch (opt) {
+ case 'h':