strndup is a GNU extension. So dont include string.h without defining _GNU_SOURCE (it results in a compile error otherwise). Remove these includes as util.h does it already.
Unified · Split
| @@ -1,5 +1,3 @@ | ||
| 1 | −#include <string.h> | |
| 2 | −#include <stdlib.h> | |
| 3 | 1 | #include "string.h" |
| 4 | 2 | #include "util.h" |
| 5 | 3 | |