summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/ssd1306/ssd1306/0001-Use-include-filename.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/ssd1306/ssd1306/0001-Use-include-filename.patch')
-rw-r--r--meta-oe/recipes-devtools/ssd1306/ssd1306/0001-Use-include-filename.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/ssd1306/ssd1306/0001-Use-include-filename.patch b/meta-oe/recipes-devtools/ssd1306/ssd1306/0001-Use-include-filename.patch
new file mode 100644
index 000000000..dfe48175a
--- /dev/null
+++ b/meta-oe/recipes-devtools/ssd1306/ssd1306/0001-Use-include-filename.patch
@@ -0,0 +1,49 @@
1From cb32ebbb1efb3202808809861ec3cbd811c55bd2 Mon Sep 17 00:00:00 2001
2From: Leon Anavi <leon.anavi@konsulko.com>
3Date: Sat, 30 Dec 2023 13:23:31 +0000
4Subject: [PATCH] Use include "filename"
5
6Use include "filename" to include programmer-defined header files
7from the same directory as the file containing the directive.
8
9Upstream-Status: Submitted [https://github.com/armlabs/ssd1306_linux/pull/4]
10
11Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
12---
13 main.c | 2 +-
14 ssd1306.c | 6 +++---
15 2 files changed, 4 insertions(+), 4 deletions(-)
16
17diff --git a/main.c b/main.c
18index c1ffc2f..18e2b84 100644
19--- a/main.c
20+++ b/main.c
21@@ -6,7 +6,7 @@
22 #include <string.h>
23 #include <fcntl.h>
24 #include <sys/ioctl.h>
25-#include <ssd1306.h>
26+#include "ssd1306.h"
27
28 void print_help()
29 {
30diff --git a/ssd1306.c b/ssd1306.c
31index a03674a..2e6ba97 100644
32--- a/ssd1306.c
33+++ b/ssd1306.c
34@@ -8,9 +8,9 @@
35 #include <string.h>
36 #include <fcntl.h>
37 #include <sys/ioctl.h>
38-#include <linux_i2c.h>
39-#include <ssd1306.h>
40-#include <font.h>
41+#include "linux_i2c.h"
42+#include "ssd1306.h"
43+#include "font.h"
44
45 const char init_oled_type_file[] = "/tmp/.ssd1306_oled_type";
46
47--
482.39.2
49