Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lshwc: Fix compile error for gcc <8.1
With gcc < 8.1 the following compile error occurs: lshwc.c:52:37: error: initializer element is not constant static unsigned int read_interval = ioctlsleep, cfvn, csvn, authorization; ^~~~~~~~~~ Even though this gcc bug was fixed in gcc 8.1+, change the constant definition to a #define to make the tool compile with older compilers as well. Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69960 Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618 Signed-off-by: Jan Höppner <[email protected]>
- Loading branch information