Commit eb445425ff4559070328410574b135dcda4a96e3

Guillem Jover 2019-08-12T23:52:10

Do not define SIZE_T_MAX if already defined

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/nlist.c b/src/nlist.c
index 228c220..d22fa19 100644
--- a/src/nlist.c
+++ b/src/nlist.c
@@ -43,7 +43,9 @@
 
 #include "local-elf.h"
 
+#ifndef SIZE_T_MAX
 #define SIZE_T_MAX 0xffffffffU
+#endif
 
 /* Note: This function is used by libkvm0, so we need to export it.
  * It is not declared in the include files though. */