From 7bccd8984cc5b3206155b462d3c2a7bf6748641f Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Tue, 18 Mar 2014 10:02:14 +0800 Subject: Fix compilation error due to missing getopt with x86_64-linux-glibc2.11-4.8 Unlike its 4.6 counterpart, the new x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/x86_64-linux/bits/gthr-default.h (line #39) no longer unconditionally include unistd.h which provides getopt prototype Change-Id: I53310bb0f27e6ed7b4ee732ef301c4868decccb4 --- emulator/opengl/host/tools/emugen/main.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'emulator/opengl/host/tools/emugen/main.cpp') diff --git a/emulator/opengl/host/tools/emugen/main.cpp b/emulator/opengl/host/tools/emugen/main.cpp index d9778ae..c0c24e9 100644 --- a/emulator/opengl/host/tools/emugen/main.cpp +++ b/emulator/opengl/host/tools/emugen/main.cpp @@ -20,10 +20,7 @@ #include "strUtils.h" #include "ApiGen.h" #include "TypeFactory.h" - -#ifdef _WIN32 #include "getopt.h" -#endif const std::string SPEC_EXTENSION = std::string(".in"); const std::string ATTRIB_EXTENSION = std::string(".attrib"); -- cgit v1.1