aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-05-01 15:50:19 +1200
committerScott Anderson <ascent12@hotmail.com>2017-05-01 15:50:19 +1200
commit9ac46ec5ed6ba67a8c684069f8255384f6acd18b (patch)
tree723b04a2b6c5e17e4640caf3019feef196cc10f1 /backend/drm
parent95a553dc51029406f9b52227e88ebd9f67b203a5 (diff)
Got it to build
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c6
-rw-r--r--backend/drm/event.c8
-rw-r--r--backend/drm/otd.c10
-rw-r--r--backend/drm/session.c6
-rw-r--r--backend/drm/udev.c10
5 files changed, 22 insertions, 18 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index bb6359c5..894d8513 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -1,6 +1,6 @@
-#include "otd.h"
-#include "drm.h"
-#include "event.h"
+#include "backend/drm/otd.h"
+#include "backend/drm/drm.h"
+#include "backend/drm/event.h"
#include <assert.h>
#include <stdio.h>
diff --git a/backend/drm/event.c b/backend/drm/event.c
index f20cb282..34679514 100644
--- a/backend/drm/event.c
+++ b/backend/drm/event.c
@@ -1,7 +1,7 @@
-#include "otd.h"
-#include "event.h"
-#include "drm.h"
-#include "udev.h"
+#include "backend/drm/otd.h"
+#include "backend/drm/event.h"
+#include "backend/drm/drm.h"
+#include "backend/drm/udev.h"
#include <stdbool.h>
#include <stdlib.h>
diff --git a/backend/drm/otd.c b/backend/drm/otd.c
index 3d5345c7..f5960793 100644
--- a/backend/drm/otd.c
+++ b/backend/drm/otd.c
@@ -2,11 +2,11 @@
#include <stdlib.h>
#include <stdio.h>
-#include "otd.h"
-#include "drm.h"
-#include "event.h"
-#include "session.h"
-#include "udev.h"
+#include "backend/drm/otd.h"
+#include "backend/drm/drm.h"
+#include "backend/drm/event.h"
+#include "backend/drm/session.h"
+#include "backend/drm/udev.h"
struct otd *otd_start(void)
{
diff --git a/backend/drm/session.c b/backend/drm/session.c
index c845fb27..261c5ac6 100644
--- a/backend/drm/session.c
+++ b/backend/drm/session.c
@@ -1,3 +1,5 @@
+#define _POSIX_C_SOURCE 200809L
+
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
@@ -9,8 +11,8 @@
#include <sys/stat.h>
#include <fcntl.h>
-#include "session.h"
-#include "otd.h"
+#include "backend/drm/session.h"
+#include "backend/drm/otd.h"
int take_device(struct otd *restrict otd,
const char *restrict path,
diff --git a/backend/drm/udev.c b/backend/drm/udev.c
index 1efa26c2..5f20a1be 100644
--- a/backend/drm/udev.c
+++ b/backend/drm/udev.c
@@ -1,3 +1,5 @@
+#define _POSIX_C_SOURCE 200809L
+
#include <libudev.h>
#include <stdbool.h>
#include <stdlib.h>
@@ -6,10 +8,10 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "otd.h"
-#include "udev.h"
-#include "session.h"
-#include "drm.h"
+#include "backend/drm/otd.h"
+#include "backend/drm/udev.h"
+#include "backend/drm/session.h"
+#include "backend/drm/drm.h"
static bool device_is_kms(struct otd *otd, struct udev_device *dev)
{