Fix build for debian stretch

Fixes #182
This commit is contained in:
Drew DeVault 2015-09-18 07:16:20 -04:00
parent e505abfe75
commit 8e25ce4e57
3 changed files with 3 additions and 0 deletions

View file

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.8.5)
project(sway C) project(sway C)
set(CMAKE_C_FLAGS "-g") set(CMAKE_C_FLAGS "-g")
set(CMAKE_C_STANDARD 99) set(CMAKE_C_STANDARD 99)
SET(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin/") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin/")
add_definitions("-Wall -Wextra -Wno-unused-parameter") add_definitions("-Wall -Wextra -Wno-unused-parameter")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMake) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMake)

View file

@ -7,6 +7,7 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <ctype.h> #include <ctype.h>
#include <sys/types.h>
#include "stringop.h" #include "stringop.h"
#include "layout.h" #include "layout.h"
#include "focus.h" #include "focus.h"

View file

@ -3,6 +3,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <wlc/wlc.h> #include <wlc/wlc.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <getopt.h> #include <getopt.h>
#include "layout.h" #include "layout.h"