(cherry picked from commit 18fb98df1e95dfe4d07b088408d31305ceead9d9)
refer to: https://www.linuxfromscratch.org/patches/blfs/svn/freeglut-3.2.1-gcc10_fix-1.patch