changeset 34652:174d115d8104

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.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 13 Oct 2017 22:38:24 +0900
parents e88dbbcf2a56
children 8bea493e7297
files mercurial/bdiff.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;