void-packages/srcpkgs/edb-debugger/patches/01-musl-long_long_min_max.p...

20 lines
596 B
Diff
Raw Normal View History

2017-08-03 22:19:17 +02:00
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: