Include <inttypes.h> when using intptr_t.
[tinc] / lib / memcmp.c
index 8103e1a..9104994 100644 (file)
 # include "config.h"
 #endif
 
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
 #undef __ptr_t
 #if defined __cplusplus || (defined __STDC__ && __STDC__)
 # define __ptr_t       void *