From e88478f1e0690878838bacf5159148ad872ec557 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 28 Jun 2013 12:16:33 -0700 Subject: [PATCH] include/plan9: define size_t to fix build breakage R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/10760043 --- include/plan9/libc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/plan9/libc.h b/include/plan9/libc.h index 9c86df0c77f..798e47095ca 100644 --- a/include/plan9/libc.h +++ b/include/plan9/libc.h @@ -22,3 +22,7 @@ void flagfn0(char*, char*, void(*fn)(void)); void flagfn1(char*, char*, void(*fn)(char*)); void flagfn2(char*, char*, void(*fn)(char*, char*)); void flagprint(int); + +// The libraries use size_t to avoid -Wconversion warnings from GCC +// when calling standard library functions like memcpy. +typedef unsigned long size_t;