$OpenBSD: patch-getopt_c,v 1.2 2020/05/14 12:20:18 ajacoutot Exp $

Index: getopt.c
--- getopt.c.orig
+++ getopt.c
@@ -30,6 +30,7 @@
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>  /* alloca */
 
 /* Comment out all this code if we are using the GNU C Library, and are not
    actually compiling the library itself.  This code is part of the GNU C
