Hi ports@ This is a simple diff to allow net/trickle to be compiled by clang.
Regards, mestre
Index: patches/patch-getopt_c =================================================================== RCS file: patches/patch-getopt_c diff -N patches/patch-getopt_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-getopt_c 25 May 2017 12:52:06 -0000 @@ -0,0 +1,15 @@ +$OpenBSD$ + +Index: getopt.c +--- getopt.c.orig ++++ getopt.c +@@ -41,8 +41,8 @@ static char *rcsid = "$OpenBSD: getopt.c,v 1.2 1996/08 + + int opterr = 1, /* if error message should be printed */ + optind = 1, /* index into parent argv vector */ +- optopt, /* character checked for validity */ + optreset; /* reset getopt */ ++extern int optopt; /* character checked for validity */ + char *optarg; /* argument associated with option */ + + #define BADCH (int)'?'
