pkgsrc/sysutils/aperture/patches/patch-ae
2000-07-15 06:11:20 +00:00

22 lines
563 B
Text

$NetBSD: patch-ae,v 1.1 2000/07/15 06:11:20 jlam Exp $
--- memconfig/memconfig.c.orig Sat Jul 15 01:35:01 2000
+++ memconfig/memconfig.c Sat Jul 15 02:07:45 2000
@@ -34,7 +34,17 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+/*
+ * This doesn't work if your kernel sources are too divergent from your
+ * installed headers. Just declare the prototypes for getopt() directly.
+ */
+#if 0
#include <unistd.h>
+#else
+int getopt(int, char * const [], const char *);
+extern char *optarg;
+extern int optind;
+#endif
#include "memrange.h"