diff options
author | TBK | 2019-03-26 07:34:03 +0100 |
---|---|---|
committer | TBK | 2019-03-26 07:34:40 +0100 |
commit | b073f2ebd577fe3dd06b8f80c2a4a5eca6788ac9 (patch) | |
tree | ee2b1a6b66d46f88a0c7646359f6676dc28ff3c2 /fix-mbedtls_include.patch | |
download | aur-b073f2ebd577fe3dd06b8f80c2a4a5eca6788ac9.tar.gz |
Initial commit
Diffstat (limited to 'fix-mbedtls_include.patch')
-rw-r--r-- | fix-mbedtls_include.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/fix-mbedtls_include.patch b/fix-mbedtls_include.patch new file mode 100644 index 000000000000..44ef9f91578d --- /dev/null +++ b/fix-mbedtls_include.patch @@ -0,0 +1,56 @@ ++++ a/Makefile ++++ b/Makefile +@@ -19,7 +19,7 @@ + bindir = $(exec_prefix)/bin + + # mbed TLS libraries +-MBEDTLS_DIR = $(PWD)/mbedtls ++MBEDTLS_DIR = /usr/include/ + MBEDTLS_CONFIG = $(PWD)/configs/mbedtls.h + MBEDTLS_CFLAGS = -DMBEDTLS_CONFIG_FILE='\"$(MBEDTLS_CONFIG)\"' $(CFLAGS) + +@@ -39,7 +39,7 @@ + # Default target: compile all programs + all: $(BINS) + +-%: %.o $(LIBSOBJ) $(STATICLIBS) ++%: %.o $(LIBSOBJ) + $(CC) $(ALL_CFLAGS) $(LIBSOBJ) $< -o $@ $(LDFLAGS) + + %.o: %.c $(HEADERS) + +--- a/configs/mbedtls.h ++++ b/configs/mbedtls.h +@@ -24,6 +24,6 @@ + #define MBEDTLS_HAVE_ASM + #define MBEDTLS_PLATFORM_C + +-#include "mbedtls/check_config.h" ++#include <mbedtls/check_config.h> + + #endif + +--- a/amiibo.c ++++ b/amiibo.c +@@ -7,8 +7,8 @@ + + #include "nfc3d/amiibo.h" + #include "util.h" +-#include "mbedtls/md.h" +-#include "mbedtls/aes.h" ++#include <mbedtls/md.h> ++#include <mbedtls/aes.h> + #include <errno.h> + #include "portable_endian.h" + +--- a/include/nfc3d/drbg.h ++++ b/include/nfc3d/drbg.h +@@ -10,7 +10,7 @@ + + #include <stdbool.h> + #include <stdint.h> +-#include "mbedtls/md.h" ++#include <mbedtls/md.h> + + #define NFC3D_DRBG_MAX_SEED_SIZE 480 /* Hardcoded max size in 3DS NFC module */ + #define NFC3D_DRBG_OUTPUT_SIZE 32 /* Every iteration generates 32 bytes */ |