summaryrefslogtreecommitdiff
path: root/src/include/arch-generic
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/arch-generic')
-rw-r--r--src/include/arch-generic/div64.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/arch-generic/div64.h b/src/include/arch-generic/div64.h
index a6bc97532a..4015810d8c 100644
--- a/src/include/arch-generic/div64.h
+++ b/src/include/arch-generic/div64.h
@@ -17,7 +17,9 @@
* beware of side effects!
*/
+#ifndef ULONG_MAX
#include <limits.h>
+#endif
#include <stdint.h>
#if ULONG_MAX == 4294967295