From db75d08ed98f432f876fe8a89da383f8e92f1314 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Tue, 11 Jun 2013 19:25:14 +0200 Subject: [PATCH] pvput: handle negative numbers --- testApp/remote/pvput.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/testApp/remote/pvput.cpp b/testApp/remote/pvput.cpp index 48e62ec..b05ce3b 100644 --- a/testApp/remote/pvput.cpp +++ b/testApp/remote/pvput.cpp @@ -779,6 +779,7 @@ int main (int argc, char *argv[]) bool quiet = false; setvbuf(stdout,NULL,_IOLBF,BUFSIZ); /* Set stdout to line buffering */ + putenv(const_cast("POSIXLY_CORRECT=")); /* Behave correct on GNU getopt systems; e.g. handle negative numbers */ while ((opt = getopt(argc, argv, ":hr:w:tqdF:")) != -1) { switch (opt) {