summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--payloads/libpayload/include/limits.h2
-rw-r--r--payloads/libpayload/include/stdint.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/payloads/libpayload/include/limits.h b/payloads/libpayload/include/limits.h
index ae71dfdfa6..be7dde07fa 100644
--- a/payloads/libpayload/include/limits.h
+++ b/payloads/libpayload/include/limits.h
@@ -40,4 +40,6 @@
# endif
#endif
+#define UINT_MAX (unsigned int)0xffffffff
+
#endif
diff --git a/payloads/libpayload/include/stdint.h b/payloads/libpayload/include/stdint.h
index ae143d702c..8e5083e39a 100644
--- a/payloads/libpayload/include/stdint.h
+++ b/payloads/libpayload/include/stdint.h
@@ -27,4 +27,9 @@
* SUCH DAMAGE.
*/
+#ifndef __STDINT_H
+#define __STDINT_H
#include <arch/types.h>
+
+typedef unsigned long uintptr_t;
+#endif