[Mesa-dev] [PATCH] mesa: Include unistd.h in program_lexer

Dylan Baker dylan at pnwbakers.com
Fri Apr 13 17:18:18 UTC 2018


Which was previously provided implicitly by mtypes.h

CC: Marek Olšák <marek.olsak at amd.com>
CC: Mark Janes <mark.a.janes at intel.com>
Fixes: 43d66c8c2d4d3d4dee1309856b6ce6c5393682e5
       ("mesa: include mtypes.h less")
Signed-off-by: Dylan Baker <dylan.c.baker at intel.com>
---
 src/mesa/program/program_lexer.l | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/program/program_lexer.l b/src/mesa/program/program_lexer.l
index 2e168b83bdb..13eb9025148 100644
--- a/src/mesa/program/program_lexer.l
+++ b/src/mesa/program/program_lexer.l
@@ -21,6 +21,7 @@
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  * DEALINGS IN THE SOFTWARE.
  */
+#include <unistd.h>
 #include "main/glheader.h"
 #include "main/imports.h"
 #include "program/prog_instruction.h"
-- 
2.17.0



More information about the mesa-dev mailing list