File xs-29-define-off_t.patch of Package xen.7314

# Commit 9d686d1269faea0447f48ed2ce789c4a06756e07
# Date 2017-03-03 19:04:46 +0000
# Author Olaf Hering <olaf@aepfle.de>
# Committer Wei Liu <wei.liu2@citrix.com>
tools/xenstore: define off_t

talloc.h uses off_t, but did not include <sys/types.h>.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Wei Liu <wei.liu2@citrix.com>

--- a/tools/xenstore/talloc.h
+++ b/tools/xenstore/talloc.h
@@ -24,6 +24,8 @@
    License along with this library; If not, see <http://www.gnu.org/licenses/>.
 */
 
+#include <sys/types.h>
+
 /* this is only needed for compatibility with the old talloc */
 typedef void TALLOC_CTX;
 
openSUSE Build Service is sponsored by