blob: a59f7c37ebfd91613a341f38c4bf3bedb0ae41bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$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"
|