Qt 4.8 fix #177

Merged
merged 1 commit into from Mar 15, 2013

2 participants

@jeremy-brenner

Just a compiler directive to include getopt.h when qt version > 4.8. Fixes specrunner compile issues on newer qt versions:

specrunner.cpp: In function ‘int main(int, char*)’:
specrunner.cpp:37:39: error: ‘getopt’ was not declared in this scope
specrunner.cpp:43:20: error: ‘optarg’ was not declared in this scope
specrunner.cpp:48:7: error: ‘optind’ was not declared in this scope
specrunner.cpp:61:16: error: ‘optind’ was not declared in this scope
make: *
* [specrunner.o] Error 1

If you could merge it would be superfantastic.

@jeremy-brenner

P.S. This doesn't break builds on qt 4.7

@johnbintz johnbintz merged commit 1055dc1 into johnbintz:master Mar 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment