summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-05-16 19:21:52 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-05-19 20:17:10 +0430
commit70a8cb0ac37ef29be4dd07713adf4a8b0c415a0a (patch)
treed60206666ffd7ef434268fd4d30db2bf7b5754ee
parent4007f69976d9876362c0100f9ddf898698334286 (diff)
downloadserenity-70a8cb0ac37ef29be4dd07713adf4a8b0c415a0a.zip
Ports: Update libmodplug's patches to use git patches
-rw-r--r--Ports/libmodplug/patches/0001-Include-strings.h.patch24
-rw-r--r--Ports/libmodplug/patches/ReadMe.md7
-rw-r--r--Ports/libmodplug/patches/build-fixes.patch12
3 files changed, 31 insertions, 12 deletions
diff --git a/Ports/libmodplug/patches/0001-Include-strings.h.patch b/Ports/libmodplug/patches/0001-Include-strings.h.patch
new file mode 100644
index 0000000000..ccf6d61a8c
--- /dev/null
+++ b/Ports/libmodplug/patches/0001-Include-strings.h.patch
@@ -0,0 +1,24 @@
+From 8042f44a1358f080e28e727b3deecd43b046a8f7 Mon Sep 17 00:00:00 2001
+From: xSlendiX <gamingxslendix@gmail.com>
+Date: Sat, 18 Sep 2021 16:19:50 +0300
+Subject: [PATCH] Include strings.h
+
+---
+ src/libmodplug/stdafx.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/libmodplug/stdafx.h b/src/libmodplug/stdafx.h
+index d45d949..23c66fc 100644
+--- a/src/libmodplug/stdafx.h
++++ b/src/libmodplug/stdafx.h
+@@ -62,6 +62,7 @@ inline void ProcessPlugins(int n) {}
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <strings.h>
+ #ifdef HAVE_MALLOC_H
+ #include <malloc.h>
+ #endif
+--
+2.36.1
+
diff --git a/Ports/libmodplug/patches/ReadMe.md b/Ports/libmodplug/patches/ReadMe.md
new file mode 100644
index 0000000000..20f49b7acd
--- /dev/null
+++ b/Ports/libmodplug/patches/ReadMe.md
@@ -0,0 +1,7 @@
+# Patches for libmodplug on SerenityOS
+
+## `0001-Include-strings.h.patch`
+
+Include strings.h
+
+
diff --git a/Ports/libmodplug/patches/build-fixes.patch b/Ports/libmodplug/patches/build-fixes.patch
deleted file mode 100644
index 4e32054735..0000000000
--- a/Ports/libmodplug/patches/build-fixes.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Naur libmodplug-0.8.8.5/src/libmodplug/stdafx.h libmodplug-0.8.8.5.serenity/src/libmodplug/stdafx.h
-index 3eacf1da6..871fb6d82 100644
---- libmodplug-0.8.8.5/src/libmodplug/stdafx.h
-+++ libmodplug-0.8.8.5.serenity/src/libmodplug/stdafx.h
-@@ -57,6 +57,7 @@ inline void ProcessPlugins(int n) {}
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-+#include <strings.h>
- #ifdef HAVE_MALLOC_H
- #include <malloc.h>
- #endif