]> Cypherpunks repositories - gostls13.git/commitdiff
lib9: fix Solaris build
authorDavid du Colombier <0intro@gmail.com>
Thu, 13 Feb 2014 19:30:42 +0000 (20:30 +0100)
committerDavid du Colombier <0intro@gmail.com>
Thu, 13 Feb 2014 19:30:42 +0000 (20:30 +0100)
In file included from src/lib9/utf/utfecpy.c:17:0:
src/lib9/utf/utfdef.h:28:0: error: "nil" redefined [-Werror]
In file included from src/lib9/utf/utfrrune.c:17:0:
src/lib9/utf/utfdef.h:28:0: error: "nil" redefined [-Werror]

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/63410043

src/lib9/utf/utfdef.h

index adc6d95fb589cfb8a1e7a715dd1451c679ec1fa0..4bbdfc643c859580707de60d0e93579a15bc25cb 100644 (file)
@@ -25,4 +25,3 @@ typedef unsigned int          uint;
 typedef unsigned long          ulong;
 
 #define nelem(x) (sizeof(x)/sizeof((x)[0]))
-#define nil ((void*)0)