void-packages/srcpkgs/edb-debugger/patches/01-musl-long_long_min_max.patch
2017-08-12 02:09:06 +03:00

19 lines
596 B
Diff

diff --git src/DialogInputValue.cpp src/DialogInputValue.cpp
index aa26b4b7..0ca19575 100644
--- src/DialogInputValue.cpp
+++ src/DialogInputValue.cpp
@@ -26,6 +26,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "ui_DialogInputValue.h"
+#if !defined(__GLIBC__)
+/* These are not defined in musl libc */
+#include <stdint.h>
+#define LONG_LONG_MIN INT64_MIN
+#define LONG_LONG_MAX INT64_MAX
+#define ULONG_LONG_MAX UINT64_MAX
+#endif
+
//------------------------------------------------------------------------------
// Name: DialogInputValue
// Desc: