summaryrefslogtreecommitdiff
path: root/databases/sdbm/patches/patch-af
blob: b533be6dcf3534929bd98710efc2472d0c46f7fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-af,v 1.1 2000/09/26 03:47:11 hubertf Exp $

--- dbe.c.orig	Mon Sep 25 23:28:28 2000
+++ dbe.c
@@ -1,4 +1,6 @@
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #ifndef VMS
 #include <sys/file.h>
 #include <ndbm.h>
@@ -51,6 +53,7 @@
 #define index  strchr
 #endif
 
+#ifndef __NetBSD__
 char
 getopt(argc, argv, optstring)
 int argc;
@@ -128,6 +131,7 @@
 	}
 	return c;
 }
+#endif
 
 
 void