[PATCH] bdiff: include compat.h in header to define ssize_t
Yuya Nishihara
yuya at tcha.org
Fri Oct 13 14:02:03 UTC 2017
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1507901904 -32400
# Fri Oct 13 22:38:24 2017 +0900
# Node ID 9f4a8052228523c43bbe9aba4b139e8161db89c7
# Parent 41045942bbaee877815dee8ba0598fc984c975b2
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.
diff --git a/mercurial/bdiff.h b/mercurial/bdiff.h
--- a/mercurial/bdiff.h
+++ b/mercurial/bdiff.h
@@ -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;
More information about the Mercurial-devel
mailing list