void-packages/srcpkgs/zulucrypt/patches/30-missing-PATH_MAX.patch

24 lines
586 B
Diff

# patch missing PATH_MAX constant for musl-builds
# source: https://stackoverflow.com/questions/9449241/where-is-path-max-defined-in-linux
--- zuluCrypt-cli/bin/volumes.c
+++ zuluCrypt-cli/bin/volumes.c
@@ -33,6 +33,7 @@
#include <blkid/blkid.h>
#include "udev_support.h"
+#include <linux/limits.h>
/*
* NOTE: This source file was previously named "partition.c"
--- zuluSafe/zuluSafe.c
+++ zuluSafe/zuluSafe.c
@@ -34,6 +34,7 @@
#include "lxqtwallet.h"
#include "version.h"
+#include <linux/limits.h>
#define PASSWORD_SIZE 512
#define WALLET_NAME_SIZE 512