Merge pull request #1188 from emersion/freebsd-fixes

Fix build on FreeBSD
This commit is contained in:
emersion 2018-08-16 11:02:21 +01:00 committed by GitHub
commit d66d33f5a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 9 additions and 10 deletions

View File

@ -1,4 +1,4 @@
#define _XOPEN_SOURCE 500
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>

View File

@ -8,7 +8,11 @@
#include "idle-inhibit-unstable-v1-client-protocol.h"
#include "xdg-shell-client-protocol.h"
#ifdef __linux__
#include <linux/input-event-codes.h>
#elif __FreeBSD__
#include <dev/evdev/input-event-codes.h>
#endif
/**
* Usage: idle-inhibit

View File

@ -1,4 +1,4 @@
#define _POSIX_C_SOURCE 199309L
#define _POSIX_C_SOURCE 200112L
#ifdef __linux__
#include <linux/input-event-codes.h>
#elif __FreeBSD__

View File

@ -1,5 +1,4 @@
#define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 500
#include <assert.h>
#include <GLES2/gl2.h>
#include <math.h>

View File

@ -1,5 +1,4 @@
#define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 500
#include <assert.h>
#include <math.h>
#include <stdio.h>

View File

@ -1,5 +1,4 @@
#define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 500
#include <GLES2/gl2.h>
#include <getopt.h>
#include <math.h>

View File

@ -1,5 +1,4 @@
#define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE 600
#include <GLES2/gl2.h>
#include <math.h>
#include <stdio.h>

View File

@ -1,5 +1,4 @@
#define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 500
#include <GLES2/gl2.h>
#include <math.h>
#include <stdint.h>

View File

@ -1,4 +1,4 @@
#define _POSIX_C_SOURCE 199309L
#define _POSIX_C_SOURCE 200112L
#include <assert.h>
#include <libinput.h>
#include <stdlib.h>

View File

@ -1,4 +1,4 @@
#define _POSIX_C_SOURCE 1
#define _POSIX_C_SOURCE 199309L
#include <assert.h>
#include <stdlib.h>
#include <sys/mman.h>