bdiff: include compat.h in header to define ssize_t
authorYuya Nishihara <yuya@tcha.org>
Fri, 13 Oct 2017 22:38:24 +0900
changeset 34652 174d115d8104
parent 34651 e88dbbcf2a56
child 34653 8bea493e7297
bdiff: include compat.h in header to define ssize_t Before ff4c9c6263de, compat.h was included first so it happened to work. But we shouldn't rely on the include order.
mercurial/bdiff.h
--- a/mercurial/bdiff.h	Sat Sep 30 22:37:20 2017 +0100
+++ b/mercurial/bdiff.h	Fri Oct 13 22:38:24 2017 +0900
@@ -1,6 +1,8 @@
 #ifndef _HG_BDIFF_H_
 #define _HG_BDIFF_H_
 
+#include "compat.h"
+
 struct bdiff_line {
 	int hash, n, e;
 	ssize_t len;