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

# 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
@@ -25,6 +25,8 @@
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
+#include <sys/types.h>
+
 /* this is only needed for compatibility with the old talloc */
 typedef void TALLOC_CTX;
 
openSUSE Build Service is sponsored by