Merge pull request #1232 from johalun/master-freebsd

FreeBSD fixes
This commit is contained in:
Drew DeVault 2017-06-06 09:34:01 -04:00 committed by GitHub
commit fd47a30e75
15 changed files with 20 additions and 19 deletions

View file

@ -66,7 +66,10 @@ find_package(GdkPixbuf)
find_package(PAM)
find_package(LibInput REQUIRED)
find_package(Libcap REQUIRED)
if (CMAKE_SYSTEM_NAME STREQUAL Linux)
find_package(Libcap REQUIRED)
endif (CMAKE_SYSTEM_NAME STREQUAL Linux)
if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
find_package(EpollShim REQUIRED)

View file

@ -1,4 +1,4 @@
#define _POSIX_C_SOURCE 1
#define _POSIX_C_SOURCE 199506L
#include <errno.h>
#include <libgen.h>
#include <signal.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#include <wlc/wlc-render.h>
#include <cairo/cairo.h>
#include <pango/pangocairo.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#include <xkbcommon/xkbcommon.h>
#include <xkbcommon/xkbcommon-names.h>
#include <wlc/wlc.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <string.h>
#include "sway/commands.h"
@ -55,4 +55,3 @@ struct cmd_results *cmd_assign(int argc, char **argv) {
}
return error ? error : cmd_results_new(CMD_SUCCESS, NULL, NULL);
}

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <string.h>
#include <strings.h>

View file

@ -1,5 +1,5 @@
#define _POSIX_C_SOURCE 200809L
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#include <ctype.h>
#include <float.h>
#include <limits.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#define _POSIX_C_SOURCE 200112L
#include <stdio.h>
#include <stdlib.h>
@ -433,4 +433,3 @@ int main(int argc, char **argv) {
return exit_value;
}

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#include <string.h>
#include <stdio.h>
#include <stdbool.h>

View file

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 700
#define _POSIX_C_SOURCE 199309L
#include <stdio.h>
#include <stdbool.h>