minor change to improve portability

This commit is contained in:
Hisham Muhammad 2011-09-08 04:29:23 +00:00
parent 3e265ce4ab
commit b288eb88c0
1 changed files with 1 additions and 1 deletions

2
htop.c
View File

@ -285,7 +285,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':