diff options
author | Larkin <45925460+larb0b@users.noreply.github.com> | 2019-09-24 02:56:39 -0400 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-24 08:56:39 +0200 |
commit | 18249b599634be4162b4ddbb32f002c75ee07060 (patch) | |
tree | dd7c700f0f0833ffffc782995da3108d82c43a3e /Ports/mbedtls/patches | |
parent | d5f1c57fe2cc7cf863b4c99b4d11460f3b547c2c (diff) | |
download | serenity-18249b599634be4162b4ddbb32f002c75ee07060.zip |
Ports: Switch to new ports system (#594)
Much redundancy is removed from package scripts with this system.
It also supports simple dependency management, uninstalling (through
BSD ports style plist files), cleaning up after itself (with clean,
clean_dist, clean_all commands), etc.
Diffstat (limited to 'Ports/mbedtls/patches')
-rw-r--r-- | Ports/mbedtls/patches/add-missing-includes.patch | 22 | ||||
-rw-r--r-- | Ports/mbedtls/patches/remove-net-from-config.patch | 12 |
2 files changed, 34 insertions, 0 deletions
diff --git a/Ports/mbedtls/patches/add-missing-includes.patch b/Ports/mbedtls/patches/add-missing-includes.patch new file mode 100644 index 0000000000..70918bc2a8 --- /dev/null +++ b/Ports/mbedtls/patches/add-missing-includes.patch @@ -0,0 +1,22 @@ +diff -u -r mbedtls/library/ssl_tls.c mbedtls-patched/library/ssl_tls.c +--- mbedtls/library/ssl_tls.c 2019-06-18 23:23:28.000000000 +1000 ++++ mbedtls-patched/library/ssl_tls.c 2019-08-05 00:36:37.049255960 +1000 +@@ -49,6 +49,7 @@ + #include "mbedtls/platform_util.h" + + #include <string.h> ++#include <stdint.h> + + #if defined(MBEDTLS_X509_CRT_PARSE_C) + #include "mbedtls/oid.h" +diff -u -r mbedtls/library/x509_crt.c mbedtls-patched/library/x509_crt.c +--- mbedtls/library/x509_crt.c 2019-06-18 23:23:28.000000000 +1000 ++++ mbedtls-patched/library/x509_crt.c 2019-08-05 00:24:22.606023827 +1000 +@@ -75,6 +75,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <dirent.h> ++#include <unistd.h> + #endif /* !_WIN32 || EFIX64 || EFI32 */ + #endif + diff --git a/Ports/mbedtls/patches/remove-net-from-config.patch b/Ports/mbedtls/patches/remove-net-from-config.patch new file mode 100644 index 0000000000..15a225e09b --- /dev/null +++ b/Ports/mbedtls/patches/remove-net-from-config.patch @@ -0,0 +1,12 @@ +diff -u -r mbedtls/include/mbedtls/config.h mbedtls-patched/include/mbedtls/config.h +--- mbedtls/include/mbedtls/config.h 2019-06-18 23:23:28.000000000 +1000 ++++ mbedtls-patched/include/mbedtls/config.h 2019-08-05 00:27:17.322830039 +1000 +@@ -2460,7 +2460,7 @@ + * + * This module provides networking routines. + */ +-#define MBEDTLS_NET_C ++//#define MBEDTLS_NET_C + + /** + * \def MBEDTLS_OID_C |