summaryrefslogtreecommitdiff
path: root/optimize-headers-file.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-25 02:28:09 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-25 02:28:09 +0000
commitf3ecda9124b73d07936b9894fed68a58e2bef695 (patch)
treee40517019ee1d786180450a9dcc9935d828f2843 /optimize-headers-file.patch
parentd1286f771edf8cf46ba78e812e7059a2879f3581 (diff)
automatic import of libgmemopeneuler23.03
Diffstat (limited to 'optimize-headers-file.patch')
-rw-r--r--optimize-headers-file.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/optimize-headers-file.patch b/optimize-headers-file.patch
new file mode 100644
index 0000000..819e4c0
--- /dev/null
+++ b/optimize-headers-file.patch
@@ -0,0 +1,42 @@
+From 074fe4486f48838690e674a7e0f394705777cc93 Mon Sep 17 00:00:00 2001
+From: Yang Yanchao <yangyanchao6@huawei.com>
+Date: Tue, 12 Sep 2023 12:02:03 +0800
+Subject: [PATCH] optimize headers file
+
+add linux/gmem_dev.h in gmem_common.h
+change syscall.h position
+
+Signed-off-by: Yang Yanchao <yangyanchao6@huawei.com>
+---
+ include/gmem_common.h | 2 ++
+ include/libgmem.h | 1 -
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/include/gmem_common.h b/include/gmem_common.h
+index a400b37..dfaeb56 100644
+--- a/include/gmem_common.h
++++ b/include/gmem_common.h
+@@ -15,6 +15,8 @@
+
+ #include <libgmem.h>
+ #include <stdlib.h>
++#include <syscall.h>
++#include <linux/gmem_dev.h>
+
+ typedef struct {
+ int (*FreeEager)(void *userData, void *stream);
+diff --git a/include/libgmem.h b/include/libgmem.h
+index 35cf463..d68aed7 100644
+--- a/include/libgmem.h
++++ b/include/libgmem.h
+@@ -14,7 +14,6 @@
+ #define _LIBGMEM_H
+
+ #include <unistd.h>
+-#include <syscall.h>
+
+ __BEGIN_DECLS
+ /*
+--
+2.41.0.windows.3
+