From 8e25ce4e5763c74864587b0a78217eb20c299afe Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 18 Sep 2015 07:16:20 -0400 Subject: [PATCH] Fix build for debian stretch Fixes #182 --- CMakeLists.txt | 1 + sway/commands.c | 1 + sway/main.c | 1 + 3 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index afad8123e..09f37d6d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.8.5) project(sway C) set(CMAKE_C_FLAGS "-g") set(CMAKE_C_STANDARD 99) +SET(CMAKE_C_EXTENSIONS OFF) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin/") add_definitions("-Wall -Wextra -Wno-unused-parameter") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMake) diff --git a/sway/commands.c b/sway/commands.c index e79746aec..71eb9d70c 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -7,6 +7,7 @@ #include #include #include +#include #include "stringop.h" #include "layout.h" #include "focus.h" diff --git a/sway/main.c b/sway/main.c index e03588ea4..97243f990 100644 --- a/sway/main.c +++ b/sway/main.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include "layout.h"