From 5c3d973a4ae3b94db65a8198759ea911a6e097e8 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 10 Dec 2008 20:25:42 +0000 Subject: Import OpenBSD's getopt(3) to workaround broken glibc version. --- tmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tmux.c') diff --git a/tmux.c b/tmux.c index ed2c7acf..e60d5a2e 100644 --- a/tmux.c +++ b/tmux.c @@ -1,4 +1,4 @@ -/* $Id: tmux.c,v 1.83 2008-12-08 16:19:51 nicm Exp $ */ +/* $Id: tmux.c,v 1.84 2008-12-10 20:25:41 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -181,7 +181,7 @@ main(int argc, char **argv) flags = 0; path = NULL; - while ((opt = getopt(argc, argv, GETOPT_PREFIX "2df:qS:uVv")) != EOF) { + while ((opt = getopt(argc, argv, "2df:qS:uVv")) != -1) { switch (opt) { case '2': flags |= IDENTIFY_256COLOURS; -- cgit